Package edu.cmu.tetrad.sem
Class EmpiricalDistributionForExpression
java.lang.Object
edu.cmu.tetrad.sem.EmpiricalDistributionForExpression
Returns a sample empirical distribution for a particular expression.
- Version:
- $Id: $Id
- Author:
- josephramsey
-
Constructor Summary
ConstructorsConstructorDescriptionEmpiricalDistributionForExpression(GeneralizedSemPm semPm, Node error, Context context) Constructor for EmpiricalDistributionForExpression. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.math3.distribution.RealDistributiongetDist()Generates an empirical cumulative distribution function (CDF) based on the evaluation of an expression over a repetitive sampling process.
-
Constructor Details
-
EmpiricalDistributionForExpression
Constructor for EmpiricalDistributionForExpression.
- Parameters:
semPm- aGeneralizedSemPmobjecterror- aNodeobjectcontext- aContextobject
-
-
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
RealDistributionobject representing the empirical cumulative distribution function (CDF) generated based on the evaluated sample values.
-