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 TypeMethodDescriptionboolean
int
hashCode()
hashCode.boolean
isManipulated
(int nodeIndex) isManipulated.static Manipulation
Generates a simple exemplar of this class to test serialization.void
setManipulated
(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
- aVariableSource
object
-
Manipulation
Copy constructor.- Parameters:
manipulation
- aManipulation
object
-
-
Method Details
-
serializableInstance
Generates a simple exemplar of this class to test serialization.- Returns:
- a
Manipulation
object
-
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
-