hybrid.distance: hybrid.distance

Description Usage Arguments Value

View source: R/rrepast-helper.R

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

1
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


antonio-pgarcia/RRepast documentation built on Feb. 22, 2020, 1:20 a.m.