|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcc.mallet.types.Minkowski
public class Minkowski
| Constructor Summary | |
|---|---|
Minkowski(double q)
Constructor for Minkowski metric. |
|
| Method Summary | |
|---|---|
double |
distance(SparseVector a,
SparseVector b)
Gives the Minkowski distance between two vectors. |
double |
euclideanDistance(SparseVector a,
SparseVector b)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Minkowski(double q)
q - Power of component wise absolute difference; must be at least 1| Method Detail |
|---|
public double distance(SparseVector a,
SparseVector b)
distance in interface Metric
public double euclideanDistance(SparseVector a,
SparseVector b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||