Package edu.cmu.tetrad.data
Interface Variable
- All Superinterfaces:
- Comparable<Node>,- Node,- Serializable,- TetradSerializable
- All Known Implementing Classes:
- AbstractVariable,- ContinuousVariable,- DiscreteVariable
Interface implemented by classes, instantiations of which are capable of
 serving as variables for columns in a DataSet. Such a class provides needed
 details as to how the data in its column are to be interpreted. In
 particular, a variable has a name and specifies a value in the column that is
 to be interpreted as a missing datum. The variable also specifies how
 external data (in String form, say) is to be converted into raw data of the
 type used in the column in question.
- Author:
- Joseph Ramsey
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final longRequired serial version UID for serialization.
- 
Method SummaryModifier and TypeMethodDescriptionbooleancheckValue(Object value) Checks to see whether the passed value can be converted into a value for this variable.booleanisMissingValue(Object value) Tests whether the given value is the missing data marker.Methods inherited from interface edu.cmu.tetrad.graph.NodeaddAttribute, addPropertyChangeListener, compareTo, equals, getAllAttributes, getAttribute, getCenterX, getCenterY, getName, getNodeType, getNodeVariableType, hashCode, like, removeAttribute, setCenter, setCenterX, setCenterY, setName, setNodeType, setNodeVariableType, toString
- 
Field Details- 
serialVersionUIDstatic final long serialVersionUIDRequired serial version UID for serialization. Must be 23L.- See Also:
 
 
- 
- 
Method Details- 
getMissingValueMarkerObject getMissingValueMarker()- Returns:
- the missing value marker as an object--i.e. a double if continuous, an Integer if discrete, etc.
 
- 
isMissingValueTests whether the given value is the missing data marker.- Parameters:
- value- The object value one wants to check as a missing value.
- Returns:
- true iff the given object is equals to getMissingValueMarker().
 
- 
checkValueChecks to see whether the passed value can be converted into a value for this variable.- Parameters:
- value- The object value to be checked. For instance, for a continuous variable, this would be a Double, for a discrete variable, and Integer, etc.
- Returns:
- true iff the object is a valid value for this variable.
 
 
-