Learn R Programming

rgp (version 0.4-1)

smse: Scaled mean squared error (SMSE)

Description

Calculates the MSE between vectors after scaling them. Beware that this error measure is invariant to scaling with negative constants, i.e. the multiplicative inverse of the true functions also receives an error of 0. See http://www2.cs.uidaho.edu/~cs472_572/f11/scaledsymbolicRegression.pdf for details.

Usage

smse(x, y)

Arguments

x
A numeric vector or list.
y
A numeric vector or list.

Value

The NMSE between x and y.