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 TypeMethodDescriptionvoidadd(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.booleanbooleanbooleanisIndependent(Node x, Node y, Node... z) booleanisIndependent(Node x, Node y, Set<Node> z) booleanisMixed()voidremove(IndependenceFact fact) static IndependenceFactsGenerates a simple exemplar of this class to test serialization.voidsetKnowledge(Knowledge knowledge) Sets knowledge to a copy of the given object.voidSets the name of the data model (may be null).voidintsize()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:DataModelRenders the data model as as String. -
isContinuous
public boolean isContinuous()- Specified by:
isContinuousin interfaceDataModel
-
isDiscrete
public boolean isDiscrete()- Specified by:
isDiscretein interfaceDataModel
-
isMixed
public boolean isMixed() -
getVariable
- Specified by:
getVariablein interfaceDataModel
-
copy
-
remove
-
getName
-
setName
Description copied from interface:DataModelSets the name of the data model (may be null). -
isIndependent
-
isIndependent
-
getKnowledge
- Specified by:
getKnowledgein interfaceKnowledgeTransferable- Returns:
- a copy of the knowledge for this class.
-
setKnowledge
Description copied from interface:KnowledgeTransferableSets knowledge to a copy of the given object.- Specified by:
setKnowledgein interfaceKnowledgeTransferable
-
getVariables
Description copied from interface:VariableSourceReturns the list of variables associated with this object.- Specified by:
getVariablesin interfaceVariableSource- Returns:
- the list of variables associated with this object.
-
getVariableNames
Description copied from interface:VariableSourceReturns the variable names associated with this getVariableNames.- Specified by:
getVariableNamesin interfaceVariableSource- Returns:
- the variable names associated with this getVariableNames.
-
setNodes
-
size
public int size() -
getFacts
-