mlrt: Error functions for minimization

Description Usage Arguments Details Value See Also

View source: R/errorfn.R

Description

Those functions calculate the (weighted) difference between two vectors.

Usage

1
2
3
4
5
6
7
mlrt(x, y, w = rep(1, length(x)))

mard(x, y, w = rep(1, length(x)))

rmsd(x, y, w = rep(1, length(x)))

rrsd(x, y, w = rep(1, length(x)))

Arguments

x

Reference vector.

y

Test vector.

w

Weights vector.

Details

Those functions are commonly used in the literature as error functions for minimization in inversion problems. mlrt computes the mean log ratio, mard computes the mean absolute relative difference, rmsd computes the root mean squared difference, and rrse computes the relative root squared error between two vectors. All function accept a vector of weights, as in weighted.mean.

Value

A scalar with the difference between the two vectors.

See Also

weighted.mean


AlexCast/rho documentation built on Dec. 14, 2021, 9:47 a.m.