Liking cljdoc? Tell your friends :D

thi.ng.common.math.core


*eps*clj/s

source

*rnd*clj/s

source

absclj/s≠

clj
(abs x)
cljs
source (clj)source (cljs)

abs-diffclj/s

(abs-diff x y)
source

bit-countclj/s

(bit-count x)
source

ceilclj/s

(ceil x)
source (clj)source (cljs)

ceil-pow2clj/s

(ceil-pow2 x)
source

clampclj/s

(clamp x min max)
source

clamp-normalizedclj/s

(clamp-normalized x)
source

DEGclj/s

source

degreesclj/s

(degrees x)
source

ensure-evenclj/s

(ensure-even x)

Returns x if even or x+1 if x is odd.

Returns x if even or `x+1` if `x` is odd.
sourceraw docstring

ensure-oddclj/s

(ensure-odd x)

Returns x if odd or x+1 if x is even.

Returns x if odd or `x+1` if `x` is even.
sourceraw docstring

fdimclj/s

(fdim x y)
source

floorclj/s

(floor x)
source (clj)source (cljs)

floor-pow2clj/s

(floor-pow2 x)
source (clj)source (cljs)

fractclj/s

(fract x)
source

HALF_PIclj/s

source

hypotclj/s

(hypot x y)
source

impulseclj/s

(impulse k t)
source

in-range?clj/s

(in-range? [min max] x)
(in-range? min max x)

Returns true if x >= min and x <= max.

Returns true if x >= min and x <= max.
sourceraw docstring

INF+clj/s

source

INF-clj/s

source

ldexpclj/s

(ldexp x k)
source

LOG2clj/s

source

map-intervalclj/s

(map-interval x [in1 in2] [out1 out2])
(map-interval x in1 in2 out1 out2)

Maps x from one interval into another. Intervals can be defined as vectors.

Maps x from one interval into another. Intervals can be defined as vectors.
sourceraw docstring

map-interval-clampedclj/s

(map-interval-clamped x [in1 in2] [out1 out2])
(map-interval-clamped x [in1 in2] [out1 out2] [c1 c2])
(map-interval-clamped x in1 in2 out1 out2)
(map-interval-clamped x in1 in2 out1 out2 c1 c2)
source

MAXclj/s

source

maxmagclj/s

(maxmag x y)
source

MINclj/s

source

minmagclj/s

(minmag x y)
source

mixclj/s

(mix a b t)
source

norm-rangeclj/s

(norm-range x)

Returns lazy-seq of values in the closed interval [0.0, 1.0] at resolution 1/x.

Returns lazy-seq of values in the closed interval [0.0, 1.0] at
resolution 1/x.
sourceraw docstring

normdist-weightsclj/s

(normdist-weights n)
(normdist-weights n scale)
source

PDeltaEqualsclj/s≠protocol

delta=clj/s

(delta= a b)
(delta= a b eps)
source

percentileclj/s

(percentile n sorted)
source

percentile-indexclj/s

(percentile-index n num)
source

PHIclj/s

source

PIclj/s

source

QUARTER_PIclj/s

source

quartileclj/s

(quartile n sorted)

Takes a quartile index (1..4) and sorted seq of samples, returns set of items in quartile.

Takes a quartile index (1..4) and sorted seq of samples, returns set of items in quartile.
sourceraw docstring

quartile-indexclj/s

(quartile-index n num)
source

quartile-rangeclj/s

(quartile-range n num)
source

RADclj/s

source

radiansclj/s

(radians x)
source

randnormclj/s

(randnorm)
source (clj)source (cljs)

randomclj/s

(random)
(random max)
(random min max)
source (clj)source (cljs)

remquoclj/s

(remquo x y)
source

rootnclj/s

(rootn x y)
source

roundtoclj/s

(roundto x prec)
source

rsqrtclj/s

(rsqrt x)
source

signumclj/s

(signum x)
(signum x delta)
source

SIXTH_PIclj/s

source

smoothstepclj/s

(smoothstep e0 e1 x)
source

SQRT2clj/s

source

SQRT3clj/s

source

stepclj/s

(step edge x)
source

THIRDclj/s

source

THIRD_PIclj/s

source

THREE_HALVES_PIclj/s

source

truncclj/s

(trunc x)
source

TWO_PIclj/s

source

wrap-rangeclj/s

(wrap-range x y)
source

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

× close