public class Distance extends Object
| Constructor and Description |
|---|
Distance(double value)
Creates a new
Distance. |
Distance(double value,
Metric metric)
|
| Modifier and Type | Method and Description |
|---|---|
Distance |
add(Distance other)
Adds the given distance to the current one.
|
Distance |
add(Distance other,
Metric metric)
|
boolean |
equals(Object obj) |
Metric |
getMetric() |
double |
getNormalizedValue()
Returns the normalized value regarding the underlying
Metric. |
double |
getValue() |
int |
hashCode() |
String |
toString() |
public Distance(double value)
Distance.value - public Distance(double value,
Metric metric)
value - metric - public double getValue()
public double getNormalizedValue()
Metric.public Metric getMetric()
public Distance add(Distance other)
Distance will be in the same metric as the
current one.other - Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.