edu.indiana.iucbrf.feature.unknown
Class AbstractCompositeUFH

java.lang.Object
  extended by edu.indiana.iucbrf.feature.unknown.AbstractUnknownFeatureHandler
      extended by edu.indiana.iucbrf.feature.unknown.AbstractCompositeUFH
All Implemented Interfaces:
UnknownFeatureHandler, java.io.Serializable
Direct Known Subclasses:
DependenceCompositeUFH

public abstract class AbstractCompositeUFH
extends AbstractUnknownFeatureHandler

A composite unknown feature handler is one in which different unknown feature handlers are used under different conditions, as determined by chooseUnknownFeatureHandler.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.indiana.iucbrf.feature.unknown.AbstractUnknownFeatureHandler
debugMode
 
Constructor Summary
AbstractCompositeUFH()
          Creates a new instance of AbstractCompositeUFH
 
Method Summary
abstract  UnknownFeatureHandler chooseUnknownFeatureHandler(FeatureKey featureOfInterest)
           
 double differenceOfUnknownFeature(Problem p0, Problem p1, FeatureKey featureOfInterest, java.util.Collection indicesToUse)
          Estimate the difference between p1[featureOfInterest] and p2[featureOfInterest] given that one or both values may be missing, optionally making use of indicesToUse in this calculation.
protected  double differenceOfUnknownFeatureImpl(Problem p0, Problem p1, FeatureKey featureOfInterest, java.util.Collection indicesToUse)
           
 
Methods inherited from class edu.indiana.iucbrf.feature.unknown.AbstractUnknownFeatureHandler
getDebugMode, setDebugMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.indiana.iucbrf.feature.unknown.UnknownFeatureHandler
getAbbreviatedName, getName
 

Constructor Detail

AbstractCompositeUFH

public AbstractCompositeUFH()
Creates a new instance of AbstractCompositeUFH

Method Detail

differenceOfUnknownFeature

public double differenceOfUnknownFeature(Problem p0,
                                         Problem p1,
                                         FeatureKey featureOfInterest,
                                         java.util.Collection indicesToUse)
Description copied from interface: UnknownFeatureHandler
Estimate the difference between p1[featureOfInterest] and p2[featureOfInterest] given that one or both values may be missing, optionally making use of indicesToUse in this calculation.

Specified by:
differenceOfUnknownFeature in interface UnknownFeatureHandler
Overrides:
differenceOfUnknownFeature in class AbstractUnknownFeatureHandler

differenceOfUnknownFeatureImpl

protected double differenceOfUnknownFeatureImpl(Problem p0,
                                                Problem p1,
                                                FeatureKey featureOfInterest,
                                                java.util.Collection indicesToUse)
Specified by:
differenceOfUnknownFeatureImpl in class AbstractUnknownFeatureHandler

chooseUnknownFeatureHandler

public abstract UnknownFeatureHandler chooseUnknownFeatureHandler(FeatureKey featureOfInterest)