DATA - The input data type. This delta function works with a double[], but can
extract/convert to it from any other given object in case the respective extractor has been
set. See ExtractionAwareDeltaFunction for more information.@PublicEvolving public class EuclideanDistance<DATA> extends ExtractionAwareDeltaFunction<DATA,double[]>
Euclidean distance: http://en.wikipedia.org/wiki/Euclidean_distance
| 构造器和说明 |
|---|
EuclideanDistance() |
EuclideanDistance(Extractor<DATA,double[]> converter) |
| 限定符和类型 | 方法和说明 |
|---|---|
double |
getNestedDelta(double[] oldDataPoint,
double[] newDataPoint)
This method is exactly the same as
DeltaFunction.getDelta(Object, Object) except that
it gets the result of the previously done extractions as input. |
getDeltapublic double getNestedDelta(double[] oldDataPoint,
double[] newDataPoint)
ExtractionAwareDeltaFunctionDeltaFunction.getDelta(Object, Object) except that
it gets the result of the previously done extractions as input. Therefore, this method only
does the actual calculation of the delta but no data extraction or conversion.getNestedDelta 在类中 ExtractionAwareDeltaFunction<DATA,double[]>oldDataPoint - the older data point.newDataPoint - the new data point.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.