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.
- Version:
- $Id: $Id
- Author:
- Bryan Andrews
-
Constructor Summary
ConstructorsConstructorDescriptionMnlrLikelihood
(DataSet dataSet, double structurePrior, int fDegree) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiondouble
getDoF
(int child_index, int[] parents) Returns the degrees of freedom of a child given its parents.double
getEBICprior.double
getLik
(int child_index, int[] parents) Returns the likelihood of a child given its parents.double
getStructurePrior
(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.- Parameters:
k
- a int- Returns:
- a double
-
getEBICprior
public double getEBICprior()getEBICprior.
- Returns:
- a double
-