(cummax x)(cummax x options)Cumulative running max; returns result in double space.
Options:
:nan-strategy - one of :keep, :remove, :exception. Defaults to :remove.Cumulative running max; returns result in double space. Options: * `:nan-strategy` - one of `:keep`, `:remove`, `:exception`. Defaults to `:remove`.
(cummin x)(cummin x options)Cumulative running min; returns result in double space.
Options:
:nan-strategy - one of :keep, :remove, :exception. Defaults to :remove.Cumulative running min; returns result in double space. Options: * `:nan-strategy` - one of `:keep`, `:remove`, `:exception`. Defaults to `:remove`.
(cumprod x)(cumprod x options)Cumulative running product; returns result in double space.
Options:
:nan-strategy - one of :keep, :remove, :exception. Defaults to :remove.Cumulative running product; returns result in double space. Options: * `:nan-strategy` - one of `:keep`, `:remove`, `:exception`. Defaults to `:remove`.
(cumsum x)(cumsum x options)Cumulative running summation; returns result in double space.
Options:
:nan-strategy - one of :keep, :remove, :exception. Defaults to :remove.Cumulative running summation; returns result in double space. Options: * `:nan-strategy` - one of `:keep`, `:remove`, `:exception`. Defaults to `:remove`.
(descriptive-statistics x)(descriptive-statistics x stats-names)(descriptive-statistics x stats-names options)(descriptive-statistics x stats-names stats-data options)Calculate a set of descriptive statistics on a single reader.
Available stats: #{:min :quartile-1 :sum :mean :mode :median :quartile-3 :max :variance :standard-deviation :skew :n-elems :kurtosis}
options
:nan-strategy - defaults to :remove, one of
[:keep :remove :exception]. The fastest option is :keep but this
may result in your results having NaN's in them. You can also pass
in a double predicate to filter custom double values.Calculate a set of descriptive statistics on a single reader.
Available stats:
#{:min :quartile-1 :sum :mean :mode :median :quartile-3 :max
:variance :standard-deviation :skew :n-elems :kurtosis}
options
- `:nan-strategy` - defaults to :remove, one of
[:keep :remove :exception]. The fastest option is :keep but this
may result in your results having NaN's in them. You can also pass
in a double predicate to filter custom double values.(fill-range x max-span)Given a reader of numeric data and a max span amount, produce a new reader where the difference between any two consecutive elements is less than or equal to the max span amount. Also return a bitmap of the added indexes. Uses linear interpolation to fill in areas, operates in double space. Returns {:result :missing}
Given a reader of numeric data and a max span amount, produce
a new reader where the difference between any two consecutive elements
is less than or equal to the max span amount. Also return a bitmap of the added
indexes. Uses linear interpolation to fill in areas, operates in double space.
Returns
{:result :missing}(mean-fast x)Take the mean of the x. This operation doesn't know anything about nan hence it is
a bit faster than the base mean fn.
Take the mean of the x. This operation doesn't know anything about nan hence it is a bit faster than the base [[mean]] fn.
(percentiles x percentages)(percentiles x percentages options)Create a reader of percentile values, one for each percentage passed in. Estimation types are in the set of #{:r1,r2...legacy} and are described here: https://commons.apache.org/proper/commons-math/javadocs/api-3.3/index.html.
nan-strategy can be one of [:keep :remove :exception] and defaults to :exception.
Create a reader of percentile values, one for each percentage passed in.
Estimation types are in the set of #{:r1,r2...legacy} and are described
here: https://commons.apache.org/proper/commons-math/javadocs/api-3.3/index.html.
nan-strategy can be one of [:keep :remove :exception] and defaults to :exception.(quartiles x)(quartiles x options)return [min, 25 50 75 max] of item
return [min, 25 50 75 max] of item
(round x)(round x options)Vectorized implementation of Math/round. Operates in double space but returns a long or long reader.
Vectorized implementation of Math/round. Operates in double space but returns a long or long reader.
(shift x n)Shift by n and fill in with the first element for n>0 or last element for n<0.
Examples:
user> (dfn/shift (range 10) 2)
[0 0 0 1 2 3 4 5 6 7]
user> (dfn/shift (range 10) -2)
[2 3 4 5 6 7 8 9 9 9]
Shift by n and fill in with the first element for n>0 or last element for n<0. Examples: ```clojure user> (dfn/shift (range 10) 2) [0 0 0 1 2 3 4 5 6 7] user> (dfn/shift (range 10) -2) [2 3 4 5 6 7 8 9 9 9] ```
(sum x)(sum x options)Double sum of data using Kahan compensated summation.
Double sum of data using [Kahan compensated summation](https://en.wikipedia.org/wiki/Kahan_summation_algorithm).
(sum-fast x)Find the sum of the data. This operation is neither nan-aware nor does it implement
kahans compensation although via parallelization it implements pairwise summation
compensation. For a more but slightly slower but far more correct sum operator,
use sum.
Find the sum of the data. This operation is neither nan-aware nor does it implement kahans compensation although via parallelization it implements pairwise summation compensation. For a more but slightly slower but far more correct sum operator, use [[sum]].
(unsigned-bit-shift-right x y)(unsigned-bit-shift-right x y & args)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |