Class MnlrLikelihood

java.lang.Object
edu.cmu.tetrad.search.work_in_progress.MnlrLikelihood

public class MnlrLikelihood extends Object
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 Details

    • MnlrLikelihood

      public MnlrLikelihood(DataSet dataSet, double structurePrior, int fDegree)
      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()