|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnz.ac.waikato.mcennis.rat.reusablecores.distance.WeightedKLDDistance
public class WeightedKLDDistance
Weighted KLDistance function
Adapted from Anna Huang's Weka implementation.
Note: SparseListMapDataVector and ListSetVector are slow on this metric
| Constructor Summary | |
|---|---|
WeightedKLDDistance()
|
|
| Method Summary | |
|---|---|
double |
distance(DataVector inst1,
DataVector inst2)
Return the distance between the two given vectors as a double. |
WeightedKLDDistance |
prototype()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WeightedKLDDistance()
| Method Detail |
|---|
public double distance(DataVector inst1,
DataVector inst2)
DistanceFunction
distance in interface DistanceFunctioninst1 - left data vectorinst2 - right data vector
public WeightedKLDDistance prototype()
prototype in interface DistanceFunction
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||