Class GaussianLikelihoodManager.Likelihood

java.lang.Object
org.ddogleg.clustering.gmm.GaussianLikelihoodManager.Likelihood
Enclosing class:
GaussianLikelihoodManager

public class GaussianLikelihoodManager.Likelihood extends Object
Likelihood for a specific Gaussian
  • Field Details

    • gaussian

      public GaussianGmm_F64 gaussian
    • invCov

      public DMatrixRMaj invCov
    • leftSide

      public double leftSide
    • chisq

      public double chisq
    • valid

      public boolean valid
  • Constructor Details

    • Likelihood

      public Likelihood(int N)
  • Method Details

    • setGaussian

      public void setGaussian(GaussianGmm_F64 gaussian)
      Precomputes the parts of the likelihood functions which can be. Matrix inversion and determinant are the main parts.
    • likelihood

      public double likelihood(double[] point)
      Computes p(x|mu,Sigma) where x is the point. THe chi-square value is also computed.
      Parameters:
      point - The point being examined
      Returns:
      likelihood of the point
    • getChisq

      public double getChisq()