|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nz.ac.waikato.mcennis.rat.reusablecores.distance.PearsonDistance
public class PearsonDistance
Adapted from Anna Huang's Pearson distance metric for Weka by Daniel McEnnis
Constructor Summary | |
---|---|
PearsonDistance()
|
Method Summary | |
---|---|
double |
distance(DataVector inst1,
DataVector inst2)
Return the distance between the two given vectors as a double. |
PearsonDistance |
prototype()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PearsonDistance()
Method Detail |
---|
public double distance(DataVector inst1, DataVector inst2)
DistanceFunction
distance
in interface DistanceFunction
inst1
- left data vectorinst2
- right data vector
public PearsonDistance prototype()
prototype
in interface DistanceFunction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |