calculates the mean of data elements.
nan_mean(x) nan_mean(x,DIM) nan_mean(x,opt) nan_mean(x,opt,DIM) nan_mean(x,DIM,opt) nan_mean(x,DIM,W) nan_mean(x,DIM,opt,W);
dimension
first DIMENSION, with more than 1 element
options
weights to compute weighted mean (default: [])
features:
- can deal with NaN's (missing values)
- weighting of data
- dimension argument also in Octave
X=testmatrix('magi',3) X([1 6:9]) = %nan*ones(1,5) y = nan_mean(X) | ![]() | ![]() |