function variance
Returns the variance of X.
Syntax
result = variance(X)
Arguments
X: | A matrix. |
Switches
/x: | Calculate the variance along the first axis |
/y: | Calculate the variance along the second axis |
/z: | Calculate the variance along the third axis |
/xy: | Calculate the variance along the first and second axes |
/xz: | Calculate the variance along the first and third axes |
/yz: | Calculate the variance along the second and third axes |
Examples
To get a 1D vector of the variance of all slices along a 3D cube:
v = variance(cube, /xy)
See also
function max
function min
function avg
function total
function median
function stddev
function variance
function meddev