public class MinkowskiDistance extends Object implements Metric<double[]>
| Constructor and Description |
|---|
MinkowskiDistance(int p)
Constructor.
|
MinkowskiDistance(int p,
double[] weight)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
d(double[] x,
double[] y)
Minkowski distance between the two arrays of type double.
|
double |
d(float[] x,
float[] y)
Minkowski distance between the two arrays of type float.
|
double |
d(int[] x,
int[] y)
Minkowski distance between the two arrays of type integer.
|
String |
toString() |
public MinkowskiDistance(int p)
public MinkowskiDistance(int p,
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.