weka.classifiers.immune.affinity
Class NumericAttributeDistance

java.lang.Object
  extended by weka.classifiers.immune.affinity.NumericAttributeDistance
All Implemented Interfaces:
java.io.Serializable, AttributeDistance

public class NumericAttributeDistance
extends java.lang.Object
implements AttributeDistance

Type: NumericAttributeDistance File: NumericAttributeDistance.java Date: 30/12/2004 Description:

Author:
Jason Brownlee
See Also:
Serialized Form

Constructor Summary
NumericAttributeDistance()
           
 
Method Summary
 double distance(double d1, double d2)
           
 boolean isClass()
           
 boolean isNominal()
           
 boolean isNumeric()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericAttributeDistance

public NumericAttributeDistance()
Method Detail

distance

public double distance(double d1,
                       double d2)
Specified by:
distance in interface AttributeDistance
Parameters:
d1 -
d2 -
Returns:

isNumeric

public boolean isNumeric()
Specified by:
isNumeric in interface AttributeDistance

isClass

public boolean isClass()
Specified by:
isClass in interface AttributeDistance

isNominal

public boolean isNominal()
Specified by:
isNominal in interface AttributeDistance