Rev Language Reference


stdev - Standard Deviation

Finds the standard deviation of a vector of real numbers.

Usage

stdev(Real[] x)

Arguments

x : Real[] (pass by const reference)
The vector of samples.

Return Type

Details

Accepts one argument, a vector of real numbers, and returns the standard deviation as a real number.

Example

x <- v(4, 3, 2, 1)
s := stdev(x)

See Also