Home > Objects > @iData > median.m

iFit/median

PURPOSE ^

b = median(s, dim) : median value of iData object

SYNOPSIS ^

function b = median(a, dim)

DESCRIPTION ^

 b = median(s, dim) : median value of iData object

   @iData/median function to compute the median value of objects
     median(a,dim) computes median along axis of rank dim. The axis is then removed.
       If dim=0, median is done on all axes and the total is returned as a scalar value. 
       median(a,1) operates on first dimension (columns)
     median(a,-dim) computes median on all axes except the dimension specified, i.e.
       the result is the median projection of a along dimension dim.
       All other axes are removed.

 input:  a: object or array (iData/array of)
         dim: dimension to operate on (int)
 output: s: median of elements (iData/scalar)
 ex:     c=median(a);

 Version: Aug. 22, 2017
 See also iData, iData/std, iData/combine, iData/mean

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Tue 22-Aug-2017 11:03:30 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1