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:
double rmse(dataset vobs, dataset vpred)
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.
//Calculate the root mean square error of column A and B.
yr = rmse(col(A),col(B));
mae, mbe, rms