edu.indiana.iucbrf.feature.finiteset
Class BooleanFeature
java.lang.Object
edu.indiana.iucbrf.feature.AbstractFeature
edu.indiana.iucbrf.feature.finiteset.AbstractFSMFeature
edu.indiana.iucbrf.feature.finiteset.BooleanFeature
- All Implemented Interfaces:
- DoubleRepresentable, Feature, FSMFeature, SwingRepresentable, java.io.Serializable, java.lang.Comparable
public class BooleanFeature
- extends AbstractFSMFeature
This is an FSMFeature class where the finite set is {Boolean.TRUE, Boolean.TRUE}.
- See Also:
- Serialized Form
Methods inherited from class edu.indiana.iucbrf.feature.finiteset.AbstractFSMFeature |
buildSetDescription, clone, 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
BooleanFeature
public BooleanFeature()
BooleanFeature
public BooleanFeature(java.lang.Object value)
- Creates a new instance of BooleanFeature
BooleanFeature
public BooleanFeature(boolean value)
BooleanFeature
public BooleanFeature(Distribution distribution)
BooleanFeature
public BooleanFeature(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).
convertString
public java.lang.Object convertString(java.lang.String value)
- Overrides:
convertString
in class AbstractFSMFeature
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()
isTrue
public boolean isTrue()