Liking cljdoc? Tell your friends :D

framed.std.math


bigdecimalclj

(bigdecimal v)

Convert v to a java.math.BigDecimal, representing ratios as doubles

Convert v to a java.math.BigDecimal, representing ratios as doubles
sourceraw docstring

clampclj

(clamp max-val v)

Return v, or max-val if v exceeds max-val

Return v, or `max-val` if v exceeds max-val
sourceraw docstring

divide-someclj

(divide-some n div)

Zero-safe division (returns value or nil)

Zero-safe division (returns value or nil)
sourceraw docstring

meanclj

(mean vs)

Return the arithmetic mean of vs, or nil if empty

Return the arithmetic mean of vs, or nil if empty
sourceraw docstring

medianclj

(median vs)

Return the median value of vs, or nil if empty

Return the median value of vs, or nil if empty
sourceraw docstring

modeclj

(mode vs)

Return the mode of vs, or a seq of values if vs are multi-modal Returns nil if no mode present (all frequencies equal)

Return the mode of vs, or a seq of values if vs are multi-modal
Returns nil if no mode present (all frequencies equal)
sourceraw docstring

nonzero?clj

(nonzero? v)

Is v non-nil and non-zero?

Is v non-nil and non-zero?
sourceraw docstring

percentageclj

(percentage v total)
(percentage v total places)

What percent of total is v? Can optionally specify rounding decimal places; defaults to 2

What percent of total is v?
Can optionally specify rounding decimal places; defaults to 2
sourceraw docstring

round-bigdecimalclj

(round-bigdecimal precision v)

Round BigDecimal v to specified number of significant digits

Round BigDecimal `v` to specified number of significant digits
sourceraw docstring

round-placesclj

(round-places places v)

Round double v to specified number of decimal places

Round double `v` to specified number of decimal places
sourceraw docstring

std-devclj

(std-dev vs)
(std-dev vs ddof)

Compute the standard deviation of vs. Divisor used is n - ddof where ddof represents 'delta degrees of freedom'. By default returns an unbiased estimate (ddof = 1). For a biased estimate, set ddof = 0

See https://en.wikipedia.org/wiki/Bessel%27s_correction https://en.wikipedia.org/wiki/Degrees_of_freedom_(statistics)

Compute the standard deviation of `vs`. Divisor used is `n - ddof` where `ddof`
represents 'delta degrees of freedom'. By default returns an unbiased
estimate (ddof = 1). For a biased estimate, set ddof = 0

See https://en.wikipedia.org/wiki/Bessel%27s_correction
    https://en.wikipedia.org/wiki/Degrees_of_freedom_(statistics)
sourceraw docstring

varianceclj

(variance vs)
(variance vs ddof)

Compute the variance of vs. Divisor used is n - ddof where ddof represents 'delta degrees of freedom'. By default returns an unbiased estimate (ddof = 1) For a biased estimate, set ddof = 0

See https://en.wikipedia.org/wiki/Bessel%27s_correction https://en.wikipedia.org/wiki/Degrees_of_freedom_(statistics)

Compute the variance of `vs`. Divisor used is `n - ddof` where `ddof` represents
'delta degrees of freedom'. By default returns an unbiased estimate (ddof = 1)
For a biased estimate, set ddof = 0

See https://en.wikipedia.org/wiki/Bessel%27s_correction
    https://en.wikipedia.org/wiki/Degrees_of_freedom_(statistics)
sourceraw docstring

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

× close