Class MnlrLikelihood
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.MnlrLikelihood
Calculates Mixed Variables Polynomial likelihood.
As for all scores in Tetrad, higher scores mean more dependence, and negative scores indicate independence.
- Author:
- Bryan Andrews
-
Constructor Summary
ConstructorsConstructorDescriptionMnlrLikelihood(DataSet dataSet, double structurePrior, int fDegree) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiondoublegetDoF(int child_index, int[] parents) Returns the degrees of freedom of a child given its parents.doubledoublegetLik(int child_index, int[] parents) Returns the likelihood of a child given its parents.doublegetStructurePrior(int k) Returns the structur prior for k parents.
-
Constructor Details
-
MnlrLikelihood
Constructor.- Parameters:
dataSet- The dataset to analyze.structurePrior- The structure prior.fDegree- The f degree.
-
-
Method Details
-
getLik
public double getLik(int child_index, int[] parents) Returns the likelihood of a child given its parents.- Parameters:
child_index- The index the child.parents- The indices of the parents.- Returns:
- The likelihood.
-
getDoF
public double getDoF(int child_index, int[] parents) Returns the degrees of freedom of a child given its parents.- Parameters:
child_index- The index of the child.parents- The indices of the parents.- Returns:
- The degrees of freedom.
-
getStructurePrior
public double getStructurePrior(int k) Returns the structur prior for k parents. -
getEBICprior
public double getEBICprior()
-