calculates the root mean square
y = nan_rms(x,DIM,W)
dimension
first DIMENSION, with more than 1 element
weights to compute weighted s.d. (default: [])
estimated standard deviation
can deal with complex data. features: - can deal with NaN's (missing values) - weighting of data - dimension argument also in Octave - compatible to Matlab and Octave