rmse
Description
rmse (Root-Mean-Square-Error) function, also called RMSD (Root-Mean-Square-Deviation) calculates the norm of the difference between a pair of datasets, and then the mean of the difference, and returns the square root of the mean.
The RMSE value between a prediction dataset y of n values
and an observation dataset x
, is given by:
/math-12e8ffc60eef5502a7705772c9b8d426.png)
Syntax
double rmse(dataset vobs, dataset vpred)
Parameters
vobs
- Input, obsevation vector.
vpred
- Input, prediction vector.
Return
Return the root mean square error of vector vobs and vpred.
Note: Missing data, masked data and text in vobs and vpred won't be counted.
Example
//Calculate the root mean square error of column A and B. yr = rmse(col(A),col(B));