|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.indiana.iucbrf.feature.unknown.AbstractUnknownFeatureHandler edu.indiana.iucbrf.feature.unknown.DefaultValue edu.indiana.iucbrf.feature.unknown.RegionAggregate
public class RegionAggregate
Provides a "default" value for an unknown feature, obtained from the aggregate value of that feature for all cases in the current class.
Field Summary | |
---|---|
protected PartitionedCaseBase |
cb
|
protected int |
currentEqClass
The ID of the equivalence class corresponding to currentProblem. |
protected Problem |
currentProblem
The most recent problem for which an equivalence class was found. |
protected FullAggregate[] |
fullAggValues
|
Fields inherited from class edu.indiana.iucbrf.feature.unknown.DefaultValue |
---|
defaultValue, defaultValueMap, domain, storeEstimates, useEstimates |
Fields inherited from class edu.indiana.iucbrf.feature.unknown.AbstractUnknownFeatureHandler |
---|
debugMode |
Constructor Summary | |
---|---|
RegionAggregate(PartitionedCaseBase cb)
Creates a new instance of CaseBasedMeanValue |
Method Summary | |
---|---|
double |
differenceOfUnknownFeatureImpl(Problem p1,
Problem p2,
FeatureKey featureOfInterest,
java.util.Collection indicesToUse)
|
void |
featureAdded(FeatureCollectionEvent cle)
|
void |
featureChanged(FeatureCollectionEvent list_event)
|
void |
featureRemoved(FeatureCollectionEvent list_event)
|
void |
featureReplaced(FeatureCollectionEvent list_event)
|
void |
featuresCleared(FeatureCollectionEvent list_event)
|
protected void |
finalize()
Returns the nearest equivalence class index. |
java.lang.String |
getAbbreviatedName()
The abbreviated name of this unknown feature handler. |
protected double |
getCurrentConf()
|
double |
getDefaultValueImpl(Problem problemWithUnknownFeature,
Problem otherProblem,
FeatureKey key)
|
java.lang.String |
getName()
The name of this unknown feature handler. |
protected int |
getNearestEqClass(Problem newP)
|
protected int |
getNearestEqClassImpl(Problem searchProblem)
|
int |
getPreviouslySetGuessOfEqClass()
Returns currentEqClass, the eq class most recently guessed to be the correct one by this RA ufh. |
Methods inherited from class edu.indiana.iucbrf.feature.unknown.DefaultValue |
---|
equals, getDefaultValue, hashCode, setStoreEstimates, setUseEstimates, useEstimates |
Methods inherited from class edu.indiana.iucbrf.feature.unknown.AbstractUnknownFeatureHandler |
---|
differenceOfUnknownFeature, getDebugMode, setDebugMode |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PartitionedCaseBase cb
protected FullAggregate[] fullAggValues
protected Problem currentProblem
protected int currentEqClass
Constructor Detail |
---|
public RegionAggregate(PartitionedCaseBase cb)
Method Detail |
---|
public double differenceOfUnknownFeatureImpl(Problem p1, Problem p2, FeatureKey featureOfInterest, java.util.Collection indicesToUse)
differenceOfUnknownFeatureImpl
in class DefaultValue
public double getDefaultValueImpl(Problem problemWithUnknownFeature, Problem otherProblem, FeatureKey key)
getDefaultValueImpl
in class DefaultValue
protected double getCurrentConf()
getCurrentConf
in class DefaultValue
protected int getNearestEqClass(Problem newP)
protected int getNearestEqClassImpl(Problem searchProblem)
protected void finalize()
finalize
in class java.lang.Object
public java.lang.String getName()
getName
in interface UnknownFeatureHandler
getName
in class DefaultValue
public java.lang.String getAbbreviatedName()
getAbbreviatedName
in interface UnknownFeatureHandler
getAbbreviatedName
in class DefaultValue
public int getPreviouslySetGuessOfEqClass()
public void featureAdded(FeatureCollectionEvent cle)
featureAdded
in interface FeatureCollectionListener
public void featureChanged(FeatureCollectionEvent list_event)
featureChanged
in interface FeatureCollectionListener
public void featureRemoved(FeatureCollectionEvent list_event)
featureRemoved
in interface FeatureCollectionListener
public void featureReplaced(FeatureCollectionEvent list_event)
featureReplaced
in interface FeatureCollectionListener
public void featuresCleared(FeatureCollectionEvent list_event)
featuresCleared
in interface FeatureCollectionListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |