nz.ac.waikato.mcennis.rat.reusablecores.distance
Class ExponentialDistance
java.lang.Object
nz.ac.waikato.mcennis.rat.reusablecores.distance.ExponentialDistance
- All Implemented Interfaces:
- DistanceFunction
public class ExponentialDistance
- extends java.lang.Object
- implements DistanceFunction
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExponentialDistance
public ExponentialDistance()
getNegativeBase
public double getNegativeBase()
setNegativeBase
public void setNegativeBase(double negativeBase)
getNegativeExponent
public double getNegativeExponent()
setNegativeExponent
public void setNegativeExponent(double negativeExponent)
getPositiveBase
public double getPositiveBase()
setPositiveBase
public void setPositiveBase(double positiveBase)
getPositiveExponent
public double getPositiveExponent()
setPositiveExponent
public void setPositiveExponent(double positiveExponent)
distance
public double distance(DataVector inst1,
DataVector inst2)
- Description copied from interface:
DistanceFunction
- Return the distance between the two given vectors as a double.
- Specified by:
distance
in interface DistanceFunction
- Parameters:
inst1
- left data vectorinst2
- right data vector
- Returns:
- distance by a given metric
prototype
public ExponentialDistance prototype()
- Specified by:
prototype
in interface DistanceFunction