Liking cljdoc? Tell your friends :D

bortexz.utils.math


meanclj

(mean xs)

Calculates the mean of given reducible/counted values xs.

Calculates the mean of given reducible/counted values `xs`.
sourceraw docstring

round-stepclj

(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).
sourceraw docstring

standard-deviationclj

(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.
sourceraw docstring

varianceclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close