(mean xs)
Calculates the mean of given reducible/counted values xs
.
Calculates the mean of given reducible/counted values `xs`.
(round-step value step)
(round-step value step rm)
Given BigDecimal value
, BigDecimal step
and RoundingMode rm
:
Rounds the given value to the closer step, setting the scale of the resulting decimal
to same scale as step, using rm (by default RoundingMode/HALF_DOWN). RoundingMode/HALF_EVEN is not supported
as both edges of the step could be even (e.g. using 0.2M as step).
Given BigDecimal `value`, BigDecimal `step` and RoundingMode `rm`: Rounds the given value to the closer step, setting the scale of the resulting decimal to same scale as step, using rm (by default RoundingMode/HALF_DOWN). RoundingMode/HALF_EVEN is not supported as both edges of the step could be even (e.g. using 0.2M as step).
(standard-deviation xs)
(standard-deviation xs bessel?)
Calculates the standard deviation of reducible/counted values xs
.
If optional arg bessel?
is true, applies bessel's correction
and uses n-1 instead of n as divisor.
Calculates the standard deviation of reducible/counted values `xs`. If optional arg `bessel?` is true, applies bessel's correction and uses n-1 instead of n as divisor.
(variance xs)
(variance xs bessel?)
Calculates the variance of reducible/counted values xs
.
If optional arg bessel?
is true, applies bessel's correction and uses n-1
instead of n as divisor.
Calculates the variance of reducible/counted values `xs`. If optional arg `bessel?` is true, applies bessel's correction and uses n-1 instead of n as divisor.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close