Class Manipulation

java.lang.Object
edu.cmu.tetrad.bayes.Manipulation
All Implemented Interfaces:
TetradSerializable, Serializable

public final class Manipulation extends Object implements TetradSerializable
Stores information for a variable source about evidence we have for each variable as well as whether each variable has been manipulated.
Author:
josephramsey
See Also:
  • Constructor Details

    • Manipulation

      public Manipulation(VariableSource variableSource)
      Constructs a container for evidence for the given Bayes IM.
    • Manipulation

      public Manipulation(Manipulation manipulation)
      Copy constructor.
  • Method Details

    • serializableInstance

      public static Manipulation serializableInstance()
      Generates a simple exemplar of this class to test serialization.
    • setManipulated

      public void setManipulated(int nodeIndex, boolean manipulated)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isManipulated

      public boolean isManipulated(int nodeIndex)