|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.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 DefaultValueprotected double getCurrentConf()
getCurrentConf in class DefaultValueprotected int getNearestEqClass(Problem newP)
protected int getNearestEqClassImpl(Problem searchProblem)
protected void finalize()
finalize in class java.lang.Objectpublic java.lang.String getName()
getName in interface UnknownFeatureHandlergetName in class DefaultValuepublic java.lang.String getAbbreviatedName()
getAbbreviatedName in interface UnknownFeatureHandlergetAbbreviatedName in class DefaultValuepublic int getPreviouslySetGuessOfEqClass()
public void featureAdded(FeatureCollectionEvent cle)
featureAdded in interface FeatureCollectionListenerpublic void featureChanged(FeatureCollectionEvent list_event)
featureChanged in interface FeatureCollectionListenerpublic void featureRemoved(FeatureCollectionEvent list_event)
featureRemoved in interface FeatureCollectionListenerpublic void featureReplaced(FeatureCollectionEvent list_event)
featureReplaced in interface FeatureCollectionListenerpublic 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 | ||||||||