PLS_Toolbox Documentation: rmse< rinverse rwb >

rmse

Purpose

Calculate root mean square error.

Synopsis

 

err = rmse(y1,y2)

Description

RMSE is used to calculate the Root Mean Square Error between two vectors or matrices, or the Root Mean Square of a single matrix or vector.

The input is a matrix or vector y1. The output err will be the root mean square of the elements of y1.

If the optional input matrix or vector y2 is included it must be the same size as y1 and err is the root mean square of the difference between y1 and y2.

If y2 is a a column vector, it is assumed that y2 is the reference and the RMSE is calculated between each column of y1 and the vector y2.

See Also

crossval


< rinverse rwb >