weka.classifiers.neural.lvq.vectordistance
Class NominalDistance

java.lang.Object
  extended by weka.classifiers.neural.lvq.vectordistance.NominalDistance
All Implemented Interfaces:
java.io.Serializable, AttributeDistance

public class NominalDistance
extends java.lang.Object
implements AttributeDistance

Description: Calculates the distance between two nominal data values
Copyright (c) Jason Brownlee 2004

Author:
Jason Brownlee
See Also:
Serialized Form

Constructor Summary
NominalDistance()
           
 
Method Summary
 double distance(double instanceValue, double codebookValue)
          Distance between nominal attribute values, lower the distnace the closer the values.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NominalDistance

public NominalDistance()
Method Detail

distance

public double distance(double instanceValue,
                       double codebookValue)
Distance between nominal attribute values, lower the distnace the closer the values.

Specified by:
distance in interface AttributeDistance
Parameters:
instanceValue -
codebookValue -
Returns: