cdf(var x): var

Cumulative distribution function; the probability that a normal distributed variable takes a value less than or equal to x. Can be used to compress the variable to the 0..1 range. Sometimes also referred to as pnorm(x).

qnorm(var x): var

The inverse cdf function; returns the value whose cumulative distribution matches the probability x.


x - any var.


x = cdf(1); // x is now 0.84 
x = cdf(-1); // x is now 0.16

See also:

sign, abs

► latest version online