|
|||||||||
| 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
public class DefaultValue
Provides a default value for an unknown feature, with which a difference is calculated.
| Field Summary | |
|---|---|
protected double |
defaultValue
The default value, to be used for any feature for which no specific mapping value is provided. |
protected DoubleMap |
defaultValueMap
Exceptions to the defaultValue member variable above, for specified features. |
protected Domain |
domain
|
protected boolean |
storeEstimates
When true, estimated values (calculated by getDefaultValue()) and the confidence are stored in the associated problem. |
protected boolean |
useEstimates
When true, estimates are used (if applicable) just as definitely known features in this unknown feature handler. |
| Fields inherited from class edu.indiana.iucbrf.feature.unknown.AbstractUnknownFeatureHandler |
|---|
debugMode |
| Constructor Summary | |
|---|---|
protected |
DefaultValue()
|
protected |
DefaultValue(Domain domain)
|
|
DefaultValue(Domain domain,
double defaultValue)
Creates a new instance of DefaultValue |
|
DefaultValue(Domain domain,
double defaultValue,
DoubleMap defaultValueMap)
|
| Method Summary | |
|---|---|
double |
differenceOfUnknownFeatureImpl(Problem p1,
Problem p2,
FeatureKey featureOfInterest,
java.util.Collection indicesToUse)
|
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getAbbreviatedName()
The abbreviated name of this unknown feature handler. |
protected double |
getCurrentConf()
|
double |
getDefaultValue(Problem problemWithUnknownFeature,
Problem otherProblem,
FeatureKey key)
If storeEstimates is true, then this will update problemWithUnknownFeature with the estimated feature and corresponding confidence. |
double |
getDefaultValueImpl(Problem problemWithUnknownFeature,
Problem otherProblem,
FeatureKey key)
|
java.lang.String |
getName()
The name of this unknown feature handler. |
int |
hashCode()
|
void |
setStoreEstimates(boolean storeEstimates)
When true, estimated values (calculated by getDefaultValue()) and the confidence are stored in the associated problem. |
void |
setUseEstimates(boolean useEstimates)
When true, estimates are used (if applicable) just as definitely known features in this unknown feature handler. |
boolean |
useEstimates()
When true, estimates are used (if applicable) just as definitely known features in this unknown feature handler. |
| Methods inherited from class edu.indiana.iucbrf.feature.unknown.AbstractUnknownFeatureHandler |
|---|
differenceOfUnknownFeature, getDebugMode, setDebugMode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double defaultValue
protected DoubleMap defaultValueMap
protected boolean storeEstimates
protected Domain domain
protected boolean useEstimates
| Constructor Detail |
|---|
protected DefaultValue()
protected DefaultValue(Domain domain)
public DefaultValue(Domain domain,
double defaultValue)
public DefaultValue(Domain domain,
double defaultValue,
DoubleMap defaultValueMap)
| Method Detail |
|---|
public void setUseEstimates(boolean useEstimates)
public boolean useEstimates()
public void setStoreEstimates(boolean storeEstimates)
public double differenceOfUnknownFeatureImpl(Problem p1,
Problem p2,
FeatureKey featureOfInterest,
java.util.Collection indicesToUse)
differenceOfUnknownFeatureImpl in class AbstractUnknownFeatureHandler
public double getDefaultValue(Problem problemWithUnknownFeature,
Problem otherProblem,
FeatureKey key)
protected double getCurrentConf()
public double getDefaultValueImpl(Problem problemWithUnknownFeature,
Problem otherProblem,
FeatureKey key)
public java.lang.String getName()
public java.lang.String getAbbreviatedName()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||