Home > Objects > @iData > mean.m



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


function b = mean(a, dim)


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

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

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

 Version: Mar. 22, 2017
 See also iData, iData/std, iData/combine, iData/median


This function calls: This function is called by:
Generated on Wed 22-Mar-2017 09:13:30 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1