Package edu.cmu.tetrad.data
Class IndependenceFacts
java.lang.Object
edu.cmu.tetrad.data.IndependenceFacts
- All Implemented Interfaces:
DataModel
,KnowledgeTransferable
,VariableSource
,TetradSerializable
,Serializable
Stores a list of independence facts.
- Author:
- josephramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(IndependenceFact fact) copy()
getFacts()
getName()
getVariable
(String name) Returns the variable names associated with this getVariableNames.Returns the list of variables associated with this object.boolean
boolean
boolean
isIndependent
(Node x, Node y, Node... z) boolean
isIndependent
(Node x, Node y, Set<Node> z) boolean
isMixed()
void
remove
(IndependenceFact fact) static IndependenceFacts
Generates a simple exemplar of this class to test serialization.void
setKnowledge
(Knowledge knowledge) Sets knowledge to a copy of the given object.void
Sets the name of the data model (may be null).void
int
size()
toString()
Renders the data model as as String.
-
Constructor Details
-
IndependenceFacts
public IndependenceFacts() -
IndependenceFacts
-
IndependenceFacts
-
-
Method Details
-
serializableInstance
Generates a simple exemplar of this class to test serialization. -
add
-
toString
Description copied from interface:DataModel
Renders the data model as as String. -
isContinuous
public boolean isContinuous()- Specified by:
isContinuous
in interfaceDataModel
-
isDiscrete
public boolean isDiscrete()- Specified by:
isDiscrete
in interfaceDataModel
-
isMixed
public boolean isMixed() -
getVariable
- Specified by:
getVariable
in interfaceDataModel
-
copy
-
remove
-
getName
-
setName
Description copied from interface:DataModel
Sets the name of the data model (may be null). -
isIndependent
-
isIndependent
-
getKnowledge
- Specified by:
getKnowledge
in interfaceKnowledgeTransferable
- Returns:
- a copy of the knowledge for this class.
-
setKnowledge
Description copied from interface:KnowledgeTransferable
Sets knowledge to a copy of the given object.- Specified by:
setKnowledge
in interfaceKnowledgeTransferable
-
getVariables
Description copied from interface:VariableSource
Returns the list of variables associated with this object.- Specified by:
getVariables
in interfaceVariableSource
- Returns:
- the list of variables associated with this object.
-
getVariableNames
Description copied from interface:VariableSource
Returns the variable names associated with this getVariableNames.- Specified by:
getVariableNames
in interfaceVariableSource
- Returns:
- the variable names associated with this getVariableNames.
-
setNodes
-
size
public int size() -
getFacts
-