Learn R Programming

rrepast (version 0.8.0)

hybrid.distance: hybrid.distance

Description

Calculates the distance between some value a reference target value. It is an hybrid distance because when the value falls whithin a reference range the distance is 0, otherwise the distance between the value and the reference value is calculated using the user provided distance function.

Usage

hybrid.distance(value, reference, FUN = AoE.NRMSD)

Arguments

value

The value which will be compared against the reference

reference

The reference value. It should be a list holding the value, the range of values.

FUN

The distance function. The default is the NRMSD

Value

The distance metric