com.sjm.machlearn.classifiers.knn
Class HannibisDist

java.lang.Object
  |
  +--com.sjm.machlearn.classifiers.knn.HannibisDist

public class HannibisDist
extends java.lang.Object
implements KNNScoreInterface


Constructor Summary
HannibisDist()
           
 
Method Summary
 double getContinuousDist(Feature f1, Feature f2)
           
 double getDiscreteDist(Feature f1, Feature f2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HannibisDist

public HannibisDist()
Method Detail

getDiscreteDist

public double getDiscreteDist(Feature f1,
                              Feature f2)
                       throws InvalidFeature
Specified by:
getDiscreteDist in interface KNNScoreInterface

getContinuousDist

public double getContinuousDist(Feature f1,
                                Feature f2)
                         throws InvalidFeature
Specified by:
getContinuousDist in interface KNNScoreInterface