Home > Objects > @iData > median.m



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


function b = median(a, dim)


 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: Nov. 26, 2018
 See also iData, iData/std, iData/combine, iData/mean


This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1