|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmetrics.CityBlockMetric
public class CityBlockMetric
City block metric return distance calculated by function: sum|x_i - y_i| for each element from inputs vectors, where x_i is first input vector element, y_i is second vector element.
| Constructor Summary | |
|---|---|
CityBlockMetric()
Creates a new instance of CityBlockMetric |
|
| Method Summary | |
|---|---|
double |
getDistance(double[] firstVector,
double[] secondVector)
Return value containing the distance information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CityBlockMetric()
| Method Detail |
|---|
public double getDistance(double[] firstVector,
double[] secondVector)
getDistance in interface MetricModelfirstVector - first input vectorsecondVector - second input vector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||