This is a port of Zoo from R in order to create the basis of a library for time series data.
This library is built on Parallel Colt (http://sites.google.com/site/piotrwendykier/software/parallelcolt), an extension of the Colt numerics library (http://acs.lbl.gov/~hoschek/colt/).
This is a port of Zoo from R in order to create the basis of a library for time series data. This library is built on Parallel Colt (http://sites.google.com/site/piotrwendykier/software/parallelcolt), an extension of the Colt numerics library (http://acs.lbl.gov/~hoschek/colt/).
($$ ind ts)
($$ ind cols ts)
($$ ind-1 ind-2 cols ts)
This is the equivalent of :: in xts. That is, it slices out the timeseries between ind-1 and ind-2. These are any values that can be coerced into clj-time values.
This is the equivalent of :: in xts. That is, it slices out the timeseries between ind-1 and ind-2. These are any values that can be coerced into clj-time values.
(aligned? & zs)
Is the :index column identical for all zs.
Is the :index column identical for all zs.
(coredata x)
Return the :rows of a dataset, with :index dissoc'd. Intended to be used internally time series function to get at data.
Return the :rows of a dataset, with :index dissoc'd. Intended to be used internally time series function to get at data.
(lag z)
(lag z n)
Return the timeseries lagged by n units or 1 if not specified. No time calculations are made in the index column. The output timeseries is of the same length as the input.
Return the timeseries lagged by n units or 1 if not specified. No time calculations are made in the index column. The output timeseries is of the same length as the input.
(roll-apply f n coll)
A generic function for applying a function to rolling window of a collection.
Arguments: f -- function to be applied n -- size of rolling window coll -- collection of data
A generic function for applying a function to rolling window of a collection. Arguments: f -- function to be applied n -- size of rolling window coll -- collection of data
(roll-max n coll)
Returns the rolling max of the previous n elements.
Returns the rolling max of the previous n elements.
(roll-mean n coll)
Returns the unweighted mean of the previous n data points.
References: http://en.wikipedia.org/wiki/Moving_average#Simple_moving_average http://www.learningclojure.com/2010/03/moving-average-of-list.html
Returns the unweighted mean of the previous n data points. References: http://en.wikipedia.org/wiki/Moving_average#Simple_moving_average http://www.learningclojure.com/2010/03/moving-average-of-list.html
(roll-median n coll)
Returns the rolling median of the previous n elements.
Returns the rolling median of the previous n elements.
(roll-min n coll)
Returns the rolling min of the previous n elements.
Returns the rolling min of the previous n elements.
(within-zoo? t z)
Is t between the first and last indices.
Is t between the first and last indices.
(zoo x)
(zoo x index-col)
Return the given dataset as a zoo value which is simply a dataset that contains an column of clj-time values specified by index-col, default :index. That column must contain values that can be coerced into Jodas using the TimeCoercible Protocol.
Return the given dataset as a zoo value which is simply a dataset that contains an column of clj-time values specified by index-col, default :index. That column must contain values that can be coerced into Jodas using the TimeCoercible Protocol.
(zoo-apply f n zoo column & args)
Behave as for roll-apply but accept a zoo and a single column upon which to roll-apply f. Returns a zoo of the same length as input zoo with pre-pended nils
Behave as for roll-apply but accept a zoo and a single column upon which to roll-apply f. Returns a zoo of the same length as input zoo with pre-pended nils
(zoo-row-map f & zs)
Accept a number of aligned zoo object and pass them row-wise into f, return a zoo. f must accept and return maps. The :index column is stripped out before f is applied, and then replaced afterwards with the :index of the first.
Accept a number of aligned zoo object and pass them row-wise into f, return a zoo. f must accept and return maps. The :index column is stripped out before f is applied, and then replaced afterwards with the :index of the first.
(zoo-row-map- f & zs)
Accept a number of aligned zoo object and pass them row-wise into f, return a seq of maps of the output of the output. f must accept and return maps. The :index column is stripped out before f is applied, and then replaced afterwards.
Accept a number of aligned zoo object and pass them row-wise into f, return a seq of maps of the output of the output. f must accept and return maps. The :index column is stripped out before f is applied, and then replaced afterwards.
(zoo-row-map-occupied f & s)
zoo-row-map- and remove the empties. This returns a seq of maps
zoo-row-map- and remove the empties. This returns a seq of maps
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close