edu.indiana.iucbrf.feature.finiteset
Class YesNoFeature
java.lang.Object
edu.indiana.iucbrf.feature.AbstractFeature
edu.indiana.iucbrf.feature.finiteset.AbstractFSMFeature
edu.indiana.iucbrf.feature.finiteset.YesNoFeature
- All Implemented Interfaces:
- DoubleRepresentable, Feature, FSMFeature, SwingRepresentable, java.io.Serializable, java.lang.Comparable
public class YesNoFeature
- extends AbstractFSMFeature
This is an FSMFeature class where the finite set is {"Yes", "No"}.
- See Also:
- Serialized Form
Methods inherited from class edu.indiana.iucbrf.feature.finiteset.AbstractFSMFeature |
buildSetDescription, clone, convertString, getCompleteSet, getValueAsDouble, getValueAsIndex, getValueCorrespondingToIndex, getValueCorrespondingToIndex, isFSMFeature, isValidMember, midpoint, setValue, setValueWithDouble, setValueWithIndex, sizeOfSet |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
compareTo |
DEFAULT_VARIABLE_TYPE
public static final int DEFAULT_VARIABLE_TYPE
- See Also:
- Constant Field Values
completeSet
public static java.util.LinkedHashSet completeSet
YesNoFeature
public YesNoFeature()
YesNoFeature
public YesNoFeature(java.lang.Object value)
- Creates a new instance of YesNoFeature
Handles Strings too, since the completeSet consists of Strings.
YesNoFeature
public YesNoFeature(Distribution distribution)
YesNoFeature
public YesNoFeature(BinomialDistribution distribution)
getDefaultVariableType
public int getDefaultVariableType()
- Description copied from interface:
Feature
- Get the variable type (for example, Feature.NOMINAL_VARIABLE, Feature.ORDINAL_VARIABLE,
Feature.INTERVAL_VARIABLE, or Feature.OTHER_VARIABLE).
getCompleteSet
public java.util.LinkedHashSet getCompleteSet()
getFeatureInputPanel
public static FeatureInputPanel getFeatureInputPanel(int collectionType,
Domain domain,
FeatureKey featureKey,
boolean allowUnknowns)
getTypeDescription
public static java.lang.String getTypeDescription()
isYes
public boolean isYes()