public class DoubleValueSimilarity extends AbstractValueSimilarity<eu.stratosphere.types.DoubleValue>
ValueSimilarity.NO_MATCH if the difference
is * above a given threshold.NO_MATCH| Constructor and Description |
|---|
DoubleValueSimilarity(double delta)
Initializes DoubleValueSimilarity with the given threshold.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDelta()
Returns the threshold.
|
double |
getDistance(eu.stratosphere.types.DoubleValue value1,
eu.stratosphere.types.DoubleValue value2)
Returns the distance between the first and the second value or
ValueSimilarity.NO_MATCH. |
isApplicablepublic DoubleValueSimilarity(double delta)
delta - the threshold defining the maximum allowed difference.public double getDelta()
public double getDistance(eu.stratosphere.types.DoubleValue value1,
eu.stratosphere.types.DoubleValue value2)
ValueSimilarityValueSimilarity.NO_MATCH.value1 - the first valuevalue2 - the second valueValueSimilarity.NO_MATCHCopyright © 2014. All rights reserved.