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.

Version:
$Id: $Id
Author:
Bryan Andrews
  • Constructor Summary

    Constructors
    Constructor
    Description
    MnlrLikelihood(DataSet dataSet, double structurePrior, int fDegree)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    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
    Returns the structur prior for k parents.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.
      Parameters:
      k - a int
      Returns:
      a double
    • getEBICprior

      public double getEBICprior()

      getEBICprior.

      Returns:
      a double