weka.classifiers.immune.affinity
Class NominalAttributeDistance

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

public class NominalAttributeDistance
extends java.lang.Object
implements AttributeDistance

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

Author:
Jason Brownlee
See Also:
Serialized Form

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

NominalAttributeDistance

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