Class EmpiricalDistributionForExpression

java.lang.Object
edu.cmu.tetrad.sem.EmpiricalDistributionForExpression

public class EmpiricalDistributionForExpression extends Object
Returns a sample empirical distribution for a particular expression.
Version:
$Id: $Id
Author:
josephramsey
  • Constructor Details

    • EmpiricalDistributionForExpression

      public EmpiricalDistributionForExpression(GeneralizedSemPm semPm, Node error, Context context)

      Constructor for EmpiricalDistributionForExpression.

      Parameters:
      semPm - a GeneralizedSemPm object
      error - a Node object
      context - a Context object
  • Method Details

    • getDist

      public org.apache.commons.math3.distribution.RealDistribution getDist()
      Generates an empirical cumulative distribution function (CDF) based on the evaluation of an expression over a repetitive sampling process. The method retrieves an expression associated with a specified error node, evaluates the expression in a specified context over 5000 iterations, and collects the results. These collected values are then used to construct and return an empirical CDF.
      Returns:
      a RealDistribution object representing the empirical cumulative distribution function (CDF) generated based on the evaluated sample values.