|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmetrics.EuclidesMetric
public class EuclidesMetric
Euclides metric return distance calculated by function: sum[sqrt(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 | |
---|---|
EuclidesMetric()
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 EuclidesMetric()
Method Detail |
---|
public double getDistance(double[] firstVector, double[] secondVector)
getDistance
in interface MetricModel
firstVector
- first vectorsecondVector
- second vector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |