Liking cljdoc? Tell your friends :D

thi.ng.math.core


*eps*clj/s

source

*rnd*clj/s

source

abs*clj/s

source

abs-diffclj/s

(abs-diff x y)
source

bit-countclj/s

(bit-count x)
source

ceilclj/s

(ceil x)
source

ceil-pow2clj/s

(ceil-pow2 x)
source

clampclj/s

(clamp x min max)

Constraints x to be closed [min .. max] interval.

Constraints x to be closed [min .. max] interval.
sourceraw docstring

clamp-normalizedclj/s

(clamp-normalized x)

Constraints x to closed [0.0 .. 1.0] interval.

Constraints x to closed [0.0 .. 1.0] interval.
sourceraw docstring

clamp01clj/s

(clamp01 x)

Constraints x to closed [0 .. 1] interval.

Constraints x to closed [0 .. 1] interval.
sourceraw docstring

clamp11clj/s

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

floor-pow2clj/s

(floor-pow2 x)
source

fractclj/s

(fract x)
source

HALF_PIclj/s

source

hypotclj/s

(hypot x y)
source

IConjugateclj/sprotocol

conjugateclj/s

(conjugate _)
source

ICrossProductclj/sprotocol

crossclj/s

(cross _ a)
source

IDeltaEqualsclj/sprotocol

delta=clj/s

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

IDeterminantclj/sprotocol

determinantclj/s

(determinant _)
source

IDotProductclj/sprotocol

dotclj/s

(dot _)
(dot _ a)
source

IInterpolateclj/sprotocol

mixclj/s

(mix _ x)
(mix _ x t)
(mix _ a b c u v)

mix-withclj/s

(mix-with _ x t f)

smoothstepclj/s

(smoothstep _ e1 e2)

stepclj/s

(step _ e)
source

IInvertclj/sprotocol

invertclj/s

(invert _)
source

ILimitclj/sprotocol

limitclj/s

(limit _ x)
source

IMagnitudeclj/sprotocol

magclj/s

(mag _)

mag-squaredclj/s

(mag-squared _)
source

IMathOpsclj/sprotocol

msubclj/s

(msub _ a b)

*clj/s

(* _)
(* _ a)
(* _ a b)
(* _ a b c)

-clj/s

(- _)
(- _ a)
(- _ a b)
(- _ a b c)

maddclj/s

(madd _ a b)

addmclj/s

(addm _ a b)

divclj/s

(div _)
(div _ a)
(div _ a b)
(div _ a b c)

+clj/s

(+ _)
(+ _ a)
(+ _ a b)
(+ _ a b c)

absclj/s

(abs _)

submclj/s

(subm _ a b)
source

IMinMaxclj/sprotocol

maxclj/s

(max _ a)
(max _ a b)

minclj/s

(min _ a)
(min _ a b)
source

impulseclj/s

(impulse k t)
source

IMutableMathOpsclj/sprotocol

-!clj/s

(-! _)
(-! _ a)
(-! _ a b)
(-! _ a b c)

*!clj/s

(*! _)
(*! _ a)
(*! _ a b)
(*! _ a b c)

subm!clj/s

(subm! _ a b)

msub!clj/s

(msub! _ a b)

abs!clj/s

(abs! _)

madd!clj/s

(madd! _ a b)

div!clj/s

(div! _)
(div! _ a)
(div! _ a b)
(div! _ a b c)

+!clj/s

(+! _)
(+! _ a)
(+! _ a b)
(+! _ a b c)

addm!clj/s

(addm! _ a b)
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

INormalizeclj/sprotocol

normalizeclj/s

(normalize _)
(normalize _ norm)

normalized?clj/s

(normalized? _)
source

INV15BITclj/s

source

INV16BITclj/s

source

INV7BITclj/s

source

INV8BITclj/s

source

ISetOpsclj/sprotocol

differenceclj/s

(difference _ x)

intersectionclj/s

(intersection _ x)

unionclj/s

(union _ x)
source

ITransposeclj/sprotocol

transposeclj/s

(transpose _)
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. If range of input interval is zero, returns min. bound of output.

Maps x from one interval into another. Intervals can be defined as
vectors. If range of input interval is zero, returns min. bound of
output.
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)

Takes a number x, input interval and output interval. Returns x mapped proportionally from input to output interval and clamps it to output. If range of input interval is zero, returns min. bound of output.

Takes a number x, input interval and output interval. Returns x
mapped proportionally from input to output interval and clamps it to
output. If range of input interval is zero, returns min. bound of
output.
sourceraw docstring

MAXclj/s

source

maxmagclj/s

(maxmag x y)
source

MINclj/s

source

minmagclj/s

(minmag x y)
source

mix*clj/s

(mix* a b t)
source

mix-bezierclj/s

(mix-bezier a b t c1 c2)
source

mix-bounceclj/s

(mix-bounce a b t k)
source

mix-circularclj/s

(mix-circular a b t)
source

mix-circular-flippedclj/s

(mix-circular-flipped a b t)
source

mix-cosineclj/s

(mix-cosine a b t)
source

mix-decimatedclj/s

(mix-decimated a b t n)
source

mix-expclj/s

(mix-exp a b t e)
source

mix-lensclj/s

(mix-lens a b t pos strength)
source

norm-rangeclj/s

(norm-range n)

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

Returns lazy-seq of n 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

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

randomclj/s

(random)
(random max)
(random min max)
source

remquoclj/s

(remquo x y)
source

rootnclj/s

(rootn x y)
source

roundtoclj/s

(roundto x prec)
source

rsqrtclj/s

(rsqrt x)
source

signclj/s

(sign x)
source

signumclj/s

(signum x)
(signum x delta)
source

sincclj/s

(sinc x)
(sinc x freq)
source

SIXTHclj/s

source

SIXTH_PIclj/s

source

smoothstep*clj/s

(smoothstep* e0 e1 x)
source

SQRT2clj/s

source

SQRT3clj/s

source

step*clj/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

TWO_THIRDclj/s

source

wrap-rangeclj/s

(wrap-range x y)

Returns x mod y with result always in semi-closed interval [0..y

Returns x mod y with result always in semi-closed interval [0..y
sourceraw docstring

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

× close