Package edu.cmu.tetrad.search
Class ConditionalGaussianLikelihood
java.lang.Object
edu.cmu.tetrad.search.ConditionalGaussianLikelihood
Implements a conditional Gaussian likelihood. Please note that this this likelihood will be maximal only if the
the continuous mixedVariables are jointly Gaussian conditional on the discrete mixedVariables; in all other cases, it will
be less than maximal. For an algorithm like FGS this is fine.
- Author:
- Joseph Ramsey
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A return value for a likelihood--returns a likelihood value and the degrees of freedom for it. -
Constructor Summary
ConstructorsConstructorDescriptionConditionalGaussianLikelihood
(DataSet dataSet) Constructs the score using a covariance matrix. -
Method Summary
Modifier and TypeMethodDescriptiongetLikelihood
(int i, int[] parents) Returns the likelihood of variable i conditional on the given parents, assuming the continuous mixedVariables index by i or by the parents are jointly Gaussian conditional on the discrete comparison.double
void
setDiscretize
(boolean discretize) void
setNumCategoriesToDiscretize
(int numCategoriesToDiscretize) void
setPenaltyDiscount
(double penaltyDiscount) void
-
Constructor Details
-
ConditionalGaussianLikelihood
Constructs the score using a covariance matrix.
-
-
Method Details
-
setRows
-
getLikelihood
Returns the likelihood of variable i conditional on the given parents, assuming the continuous mixedVariables index by i or by the parents are jointly Gaussian conditional on the discrete comparison.- Parameters:
i
- The index of the conditioned variable.parents
- The indices of the conditioning mixedVariables.- Returns:
- The likelihood.
-
getPenaltyDiscount
public double getPenaltyDiscount() -
setPenaltyDiscount
public void setPenaltyDiscount(double penaltyDiscount) -
setDiscretize
public void setDiscretize(boolean discretize) -
setNumCategoriesToDiscretize
public void setNumCategoriesToDiscretize(int numCategoriesToDiscretize)
-