Common math utilities
Common math utilities
(bound-probability n)
Bound n
to between 0.0
and 1.0
to create a valid probability.
Bound `n` to between `0.0` and `1.0` to create a valid probability.
(min-max min-n n max-n)
given a minimum, maximum and a number, bound it.
given a minimum, maximum and a number, bound it.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close