Std.Stats
16 public declarations
- correlation
&Array[Float64] -> &Array[Float64] -> Option[Float64]Pearson correlation of paired values, from -1 to 1.
- covariance
&Array[Float64] -> &Array[Float64] -> Option[Float64]Sample covariance of paired values;
Nonewhen the lengths differ or - deviation
&Array[Float64] -> Option[Float64]Sample standard deviation;
Nonebelow two values. - histogram
&Array[Float64] -> Float64 -> Float64 -> Int -> Array[Int]Counts of values in
bucketsequal-width intervals over[low, high). - mean
&Array[Float64] -> Option[Float64]The arithmetic mean, or
Nonefor an empty sample. - median
&Array[Float64] -> Option[Float64]The middle value of the sorted sample, averaging the two middle values of
- observe
&Std.Stats.Running -> Float64 -> Std.Stats.RunningThe accumulator after one more value.
- percentile
&Array[Float64] -> Float64 -> Option[Float64]The value at percentile
rank(0 to 100), interpolating linearly between - populationVariance
&Array[Float64] -> Option[Float64]Population variance with
nin the denominator;Nonefor an empty sample. - running
Std.Stats.RunningAn accumulator that has observed nothing.
- Running
A single-pass accumulator: count, mean, sum of squared differences from
- runningMean
&Std.Stats.Running -> Option[Float64]The mean observed so far;
Nonebefore the first value. - runningVariance
&Std.Stats.Running -> Option[Float64]The sample variance observed so far;
Nonebelow two values. - summarize
&Array[Float64] -> Option[Std.Stats.Summary]Count, extremes, mean, and sample deviation;
Nonefor an empty sample. - Summary
Count, extremes, mean, and sample deviation of one sample.
- variance
&Array[Float64] -> Option[Float64]Sample variance with
n - 1in the denominator;Nonebelow two values.
