Package edu.cmu.tetrad.bayes
Class Manipulation
java.lang.Object
edu.cmu.tetrad.bayes.Manipulation
- All Implemented Interfaces:
TetradSerializable,Serializable
Stores information for a variable source about evidence we have for each variable as well as whether each variable
has been manipulated.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionManipulation(Manipulation manipulation) Copy constructor.Manipulation(VariableSource variableSource) Constructs a container for evidence for the given Bayes IM. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()hashCode.booleanisManipulated(int nodeIndex) isManipulated.static ManipulationGenerates a simple exemplar of this class to test serialization.voidsetManipulated(int nodeIndex, boolean manipulated) Setter for the fieldmanipulated.toString()toString.
-
Constructor Details
-
Manipulation
Constructs a container for evidence for the given Bayes IM.- Parameters:
variableSource- aVariableSourceobject
-
Manipulation
Copy constructor.- Parameters:
manipulation- aManipulationobject
-
-
Method Details
-
serializableInstance
Generates a simple exemplar of this class to test serialization.- Returns:
- a
Manipulationobject
-
setManipulated
public void setManipulated(int nodeIndex, boolean manipulated) Setter for the field
manipulated.- Parameters:
nodeIndex- a intmanipulated- a boolean
-
toString
-
equals
-
hashCode
-
isManipulated
public boolean isManipulated(int nodeIndex) isManipulated.
- Parameters:
nodeIndex- a int- Returns:
- a boolean
-