Fixed typos in headers and cosmetic changes.
parent
7c95c82bfa
commit
6e340c2ce8
|
@ -49,10 +49,11 @@ function c = nandemean(x)
|
||||||
|
|
||||||
% AUTHOR(S) stephane DOT adjemian AT univ DASH lemans DOT fr
|
% AUTHOR(S) stephane DOT adjemian AT univ DASH lemans DOT fr
|
||||||
|
|
||||||
if ndim(x)==1
|
switch ndim(x)
|
||||||
|
case 1
|
||||||
c = x-nanmean(x);
|
c = x-nanmean(x);
|
||||||
elseif ndim(x)==2
|
case 2
|
||||||
c = bsxfun(@minus,x,nanmean(x));
|
c = bsxfun(@minus,x,nanmean(x));
|
||||||
else
|
otherwise
|
||||||
error('descriptive_statistics::nandemean:: This function is not implemented for arrays with dimension greater than two!')
|
error('descriptive_statistics::nandemean:: This function is not implemented for arrays with dimension greater than two!')
|
||||||
end
|
end
|
|
@ -3,7 +3,7 @@ function y = nanmean(x)
|
||||||
|
|
||||||
%@info:
|
%@info:
|
||||||
%! @deftypefn {Function File} {@var{y} =} nanmean (@var{x})
|
%! @deftypefn {Function File} {@var{y} =} nanmean (@var{x})
|
||||||
%! @anchor{nandemean}
|
%! @anchor{nanmean}
|
||||||
%! @sp 1
|
%! @sp 1
|
||||||
%! Computes the mean of each column of a matrix with some NaNs.
|
%! Computes the mean of each column of a matrix with some NaNs.
|
||||||
%! @sp 2
|
%! @sp 2
|
||||||
|
@ -16,7 +16,7 @@ function y = nanmean(x)
|
||||||
%! @strong{Outputs}
|
%! @strong{Outputs}
|
||||||
%! @table @ @var
|
%! @table @ @var
|
||||||
%! @item y
|
%! @item y
|
||||||
%! Matlab matrix (T-by-N). The demeaned x matrix.
|
%! Matlab vector (1-by-N), the mean.
|
||||||
%! @end table
|
%! @end table
|
||||||
%! @sp 2
|
%! @sp 2
|
||||||
%! @strong{This function is called by:}
|
%! @strong{This function is called by:}
|
||||||
|
@ -25,7 +25,7 @@ function y = nanmean(x)
|
||||||
%! @sp 2
|
%! @sp 2
|
||||||
%! @strong{This function calls:}
|
%! @strong{This function calls:}
|
||||||
%! @sp 1
|
%! @sp 1
|
||||||
%! @ref{ndim},
|
%! @ref{ndim}
|
||||||
%!
|
%!
|
||||||
%! @end deftypefn
|
%! @end deftypefn
|
||||||
%@eod:
|
%@eod:
|
||||||
|
|
Loading…
Reference in New Issue