weka.classifiers.neural.lvq.vectordistance
Class ClassDistance

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

public class ClassDistance
extends java.lang.Object
implements AttributeDistance

Description: Calculates the distance between two class attributes.
Copyright (c) Jason Brownlee 2004

Author:
Jason Brownlee
See Also:
Serialized Form

Constructor Summary
ClassDistance()
           
 
Method Summary
 double distance(double instanceValue, double codebookValue)
          Distance between class 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

ClassDistance

public ClassDistance()
Method Detail

distance

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

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