Rmse: Difference between revisions
Jump to navigation
Jump to search
imported>Jeremy (Importing text file) |
imported>Jeremy (Importing text file) |
||
Line 1: | Line 1: | ||
===Purpose=== | ===Purpose=== | ||
Calculate Root Mean Square Difference(Error). | Calculate Root Mean Square Difference(Error). | ||
===Synopsis=== | ===Synopsis=== | ||
:err = rmse(y1,''y2'') | :err = rmse(y1,''y2'') | ||
===Description=== | ===Description=== | ||
RMSE is used to calculate the root mean square difference between two vectors or matrices. If the vector or matrix is from a model estimation and measurements then the output is the Root Mean Square Error (RMSE). | RMSE is used to calculate the root mean square difference between two vectors or matrices. If the vector or matrix is from a model estimation and measurements then the output is the Root Mean Square Error (RMSE). | ||
Output depends on the input: | Output depends on the input: | ||
A) y1 is a matrix or vector | A) y1 is a matrix or vector | ||
err = rmse(y1); | err = rmse(y1); | ||
The output err is the root mean square of the elements of y1. | The output err is the root mean square of the elements of y1. | ||
B) y1 is a matrix or vector, y2 the same size as y1 | B) y1 is a matrix or vector, y2 the same size as y1 | ||
err = rmse(y1,y2); | err = rmse(y1,y2); | ||
The output err is the root mean square of the difference between y1 and y2. | The output err is the root mean square of the difference between y1 and y2. | ||
C) y1 is a matrix or vector, y2 a column vector. | C) y1 is a matrix or vector, y2 a column vector. | ||
err = rmse(y1,y2); | err = rmse(y1,y2); | ||
The output err is the root mean square of the difference between each column of y1 and y2. | The output err is the root mean square of the difference between each column of y1 and y2. | ||
For example, y2 is a reference and the RMSE is calculated between each column of y1 and the vector y2. | For example, y2 is a reference and the RMSE is calculated between each column of y1 and the vector y2. | ||
===See Also=== | ===See Also=== | ||
[[crossval]] | [[crossval]] |
Revision as of 14:26, 3 September 2008
Purpose
Calculate Root Mean Square Difference(Error).
Synopsis
- err = rmse(y1,y2)
Description
RMSE is used to calculate the root mean square difference between two vectors or matrices. If the vector or matrix is from a model estimation and measurements then the output is the Root Mean Square Error (RMSE).
Output depends on the input:
A) y1 is a matrix or vector
err = rmse(y1);
The output err is the root mean square of the elements of y1.
B) y1 is a matrix or vector, y2 the same size as y1
err = rmse(y1,y2);
The output err is the root mean square of the difference between y1 and y2.
C) y1 is a matrix or vector, y2 a column vector.
err = rmse(y1,y2);
The output err is the root mean square of the difference between each column of y1 and y2.
For example, y2 is a reference and the RMSE is calculated between each column of y1 and the vector y2.