public class EuclideanDistance extends Object implements Metric<double[]>
| Constructor and Description |
|---|
EuclideanDistance()
Constructor.
|
EuclideanDistance(double[] weight)
Constructor with a given weight vector.
|
| Modifier and Type | Method and Description |
|---|---|
double |
d(double[] x,
double[] y)
Euclidean distance between the two arrays of type double.
|
double |
d(float[] x,
float[] y)
Euclidean distance between the two arrays of type float.
|
double |
d(int[] x,
int[] y)
Euclidean distance between the two arrays of type integer.
|
String |
toString() |
public EuclideanDistance()
public EuclideanDistance(double[] weight)
weight - the weight vector.public double d(int[] x,
int[] y)
public double d(float[] x,
float[] y)
public double d(double[] x,
double[] y)
Copyright © 2015. All rights reserved.