public class MinkowskiDistance extends java.lang.Object implements IDistance<double[]>
| Constructor and Description |
|---|
MinkowskiDistance()
Initializes a new instance of the MinkowskiDistance class.
|
MinkowskiDistance(double p)
Initializes a new instance of the MinkowskiDistance class.
|
| Modifier and Type | Method and Description |
|---|---|
double |
Compute(double[] u,
double[] v)
Compute the distance between the vectors.
|
double |
getOrder()
Get the order of the distance.
|
void |
setOrder(double p)
Set the order of the distance.
|
public MinkowskiDistance()
public MinkowskiDistance(double p)
p - Order.public double getOrder()
public void setOrder(double p)
p - Order.public double Compute(double[] u,
double[] v)
IDivergenceCompute in interface IDistance<double[]>Compute in interface IDivergence<double[]>u - Vector.v - Vector.