edu.indiana.iucbrf.feature.differentiator
Class SubtractionFeatureDifferentiator

java.lang.Object
  extended by edu.indiana.iucbrf.feature.differentiator.AbstractFeatureDifferentiator
      extended by edu.indiana.iucbrf.feature.differentiator.SubtractionFeatureDifferentiator
All Implemented Interfaces:
FeatureDifferentiator, Differentiator, java.io.Serializable

public class SubtractionFeatureDifferentiator
extends AbstractFeatureDifferentiator

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.indiana.iucbrf.feature.differentiator.AbstractFeatureDifferentiator
normalizationValue
 
Constructor Summary
SubtractionFeatureDifferentiator()
          Creates a new instance of SubtractionFeatureDifferentiator
SubtractionFeatureDifferentiator(double normalizationValue)
           
 
Method Summary
protected  double calcDifferenceImpl(Feature f1, Feature f2)
           
protected  void checkMatchingClasses(Feature f1, Feature f2)
          Make sure the two features are of the same class.
 
Methods inherited from class edu.indiana.iucbrf.feature.differentiator.AbstractFeatureDifferentiator
calcDifference, calcDifference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubtractionFeatureDifferentiator

public SubtractionFeatureDifferentiator()
Creates a new instance of SubtractionFeatureDifferentiator


SubtractionFeatureDifferentiator

public SubtractionFeatureDifferentiator(double normalizationValue)
Method Detail

calcDifferenceImpl

protected double calcDifferenceImpl(Feature f1,
                                    Feature f2)
Specified by:
calcDifferenceImpl in class AbstractFeatureDifferentiator

checkMatchingClasses

protected void checkMatchingClasses(Feature f1,
                                    Feature f2)
Make sure the two features are of the same class. If not, throw an error.