Class GeneralizedSemEstimator.MyContext

java.lang.Object
edu.cmu.tetrad.sem.GeneralizedSemEstimator.MyContext
All Implemented Interfaces:
Context
Enclosing class:
GeneralizedSemEstimator

public static class GeneralizedSemEstimator.MyContext extends Object implements Context
Context.
  • Constructor Details

    • MyContext

      public MyContext()
      Constructs a new MyContext.
  • Method Details

    • getValue

      public Double getValue(String term)
      Get the value of a variable or parameter.
      Specified by:
      getValue in interface Context
      Parameters:
      term - a String object
      Returns:
      the double value for the given var, or null if the variable has not been assigned a value.
    • putParameterValue

      public void putParameterValue(String s, double parameter)
      Puts a parameter value into the parameterValues map of the MyContext class.
      Parameters:
      s - The key for the parameter value.
      parameter - The value to be put in the map.
    • putVariableValue

      public void putVariableValue(String s, double value)
      Puts a variable value into the variableValues map of the MyContext class.
      Parameters:
      s - The key for the variable value.
      value - The value to be put in the map.