weka.classifiers.immune.affinity
Class ClassAttributeDistance

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

public class ClassAttributeDistance
extends java.lang.Object
implements AttributeDistance

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

Author:
Jason Brownlee
See Also:
Serialized Form

Constructor Summary
ClassAttributeDistance()
           
 
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

ClassAttributeDistance

public ClassAttributeDistance()
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