Package org.ddogleg.clustering.gmm
Class GaussianLikelihoodManager.Likelihood
java.lang.Object
org.ddogleg.clustering.gmm.GaussianLikelihoodManager.Likelihood
- Enclosing class:
- GaussianLikelihoodManager
Likelihood for a specific Gaussian
-
Field Summary
Modifier and TypeFieldDescriptiondouble
double
boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getChisq()
double
likelihood
(double[] point) Computes p(x|mu,Sigma) where x is the point.void
setGaussian
(GaussianGmm_F64 gaussian) Precomputes the parts of the likelihood functions which can be.
-
Field Details
-
gaussian
-
invCov
-
leftSide
public double leftSide -
chisq
public double chisq -
valid
public boolean valid
-
-
Constructor Details
-
Likelihood
public Likelihood(int N)
-
-
Method Details
-
setGaussian
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()
-