nz.ac.waikato.mcennis.rat.reusablecores.distance
Class ExponentialDistance

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.reusablecores.distance.ExponentialDistance
All Implemented Interfaces:
DistanceFunction

public class ExponentialDistance
extends java.lang.Object
implements DistanceFunction


Constructor Summary
ExponentialDistance()
           
 
Method Summary
 double distance(DataVector inst1, DataVector inst2)
          Return the distance between the two given vectors as a double.
 double getNegativeBase()
           
 double getNegativeExponent()
           
 double getPositiveBase()
           
 double getPositiveExponent()
           
 ExponentialDistance prototype()
           
 void setNegativeBase(double negativeBase)
           
 void setNegativeExponent(double negativeExponent)
           
 void setPositiveBase(double positiveBase)
           
 void setPositiveExponent(double positiveExponent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExponentialDistance

public ExponentialDistance()
Method Detail

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 vector
inst2 - right data vector
Returns:
distance by a given metric

prototype

public ExponentialDistance prototype()
Specified by:
prototype in interface DistanceFunction

Get Relational Analysis Toolkit at SourceForge.net. Fast, secure and Free Open Source software downloads