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.
hybrid.distance(value, reference, FUN = AoE.NRMSD)
The value which will be compared against the reference
The reference value. It should be a list holding the value, the range of values.
The distance function. The default is the NRMSD
The distance metric