|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmetrics.MinkowskiMetric
public class MinkowskiMetric
Minkowski metric return distance calculated by function: {sum[(x_i - y_i)^p]}^(1/p)
| Constructor Summary | |
|---|---|
MinkowskiMetric(double p)
Creates a new instance of MinkowskiMetrics. |
|
| Method Summary | |
|---|---|
double |
getDistance(double[] firstVector,
double[] secondVector)
Return distance beetwen input vectors. |
double[] |
getParamateres()
Return array of parameters containing p |
void |
setParameteres(double[] paramateresList)
Set parameter p |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MinkowskiMetric(double p)
p - metrics parameter| Method Detail |
|---|
public void setParameteres(double[] paramateresList)
paramateresList - array of parameterpublic double[] getParamateres()
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 | |||||||||