edu.indiana.iucbrf.feature.differentiator
Class NeighborhoodFeatureDifferentiator

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

public class NeighborhoodFeatureDifferentiator
extends AbstractFeatureDifferentiator

Title:

Description: Returns 0 if, according to the given featDiff, the features are within a given radius of each other. Returns 1 otherwise.

Copyright: Copyright (c) 2005

Company:

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.indiana.iucbrf.feature.differentiator.AbstractFeatureDifferentiator
normalizationValue
 
Constructor Summary
NeighborhoodFeatureDifferentiator(double neighborhoodRadius, FeatureDifferentiator featDiff)
           
 
Method Summary
protected  double calcDifferenceImpl(Feature f1, Feature f2)
           
 
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

NeighborhoodFeatureDifferentiator

public NeighborhoodFeatureDifferentiator(double neighborhoodRadius,
                                         FeatureDifferentiator featDiff)
Parameters:
neighborhoodRadius - double
featDiff - FeatureDifferentiator The differentiator to be used to see if a given feature is within the neighborhood radius
Method Detail

calcDifferenceImpl

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