function median
Returns the median value of X, optionally neglecting a value.
Syntax
result = median(X [, omit] [,/x | /y | /z | /xy | /xz | /yz])
Arguments
X: | A matrix. |
omit: | A value which should be omitted when taking the median. |
Switches
/x: | Calculate the sum along the first axis |
/y: | Calculate the sum along the second axis |
/z: | Calculate the sum along the third axis |
/xy: | Calculate the sum along the first and second axes |
/xz: | Calculate the sum along the first and third axes |
/yz: | Calculate the sum along the second and third axes |
Examples
Calculate a median image of a 3D cube:
result = median(cube, /z)
This is the same as:
result = cubemedian(cube)
See also
function max
function min
function total
function avg
function stddev
function meddev
function cubemedian