weka.classifiers.neural.lvq.vectordistance
Class OtherDistance

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

public class OtherDistance
extends java.lang.Object
implements AttributeDistance

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

Author:
Jason Brownlee
See Also:
Serialized Form

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

Constructor Detail

OtherDistance

public OtherDistance()
Method Detail

distance

public double distance(double instanceValue,
                       double codebookValue)
Distance between any attribute values, lower the distance the closer the values. Always returns zero. Used for unknown attribute types

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