rmse
Syntax
Description
returns the root mean squared
error (RMSE) between the forecast (predicted) array E = rmse(F,A)F and the
actual (observed) array A.
FandAmust either be the same size or have sizes that are compatible.If
FandAare vectors of the same size, thenEis a scalar.If
F-Ais a matrix, thenEis a row vector containing the RMSE for each column.If
FandAare multidimensional arrays, thenEcontains the RMSE computed along the first array dimension whose size does not equal 1, with elements treated as vectors. The size ofEin this dimension is 1, while the sizes of all other dimensions are the same as inF-A.
specifies whether to include or omit E = rmse(___,nanflag)NaN values in F
and A for any of the previous syntaxes. For example,
rmse(F,A,"omitnan") ignores NaN values when
computing the RMSE. By default, rmse includes NaN
values.
specifies a weighting scheme E = rmse(___,Weights=W)W and returns the weighted
RMSE.