public class ExponentialFamilyMixture extends Mixture
Mixture.Component| Modifier and Type | Field and Description |
|---|---|
double |
bic
The BIC score when the distribution is fit on a sample data.
|
double |
L
The log-likelihood when the distribution is fit on a sample data.
|
components| Constructor and Description |
|---|
ExponentialFamilyMixture(Mixture.Component... components)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static ExponentialFamilyMixture |
fit(double[] x,
Mixture.Component... components)
Fits the mixture model with the EM algorithm.
|
static ExponentialFamilyMixture |
fit(double[] x,
Mixture.Component[] components,
double gamma,
int maxIter,
double tol)
Fits the mixture model with the EM algorithm.
|
bic, cdf, entropy, length, logp, map, mean, p, posteriori, quantile, rand, size, toString, varianceinverseTransformSampling, quantile, quantile, rejectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitlikelihood, logLikelihood, rand, sdpublic final double L
public final double bic
public ExponentialFamilyMixture(Mixture.Component... components)
components - a list of exponential family distributions.public static ExponentialFamilyMixture fit(double[] x, Mixture.Component... components)
components - the initial configuration of mixture. Components may have
different distribution form.x - the training data.public static ExponentialFamilyMixture fit(double[] x, Mixture.Component[] components, double gamma, int maxIter, double tol)
components - the initial configuration.x - the training data.gamma - the regularization parameter. Although regularization works
well for high dimensional data, it often reduces the model
to too few components. For one-dimensional data, gamma should
be 0 in general.maxIter - the maximum number of iterations.tol - the tolerance of convergence test.