
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractGmModel()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract RealArray |
computeLogWeightedDensities(GmComponents gmc,
RealArray points)
Computes the log of the weighted densities.
|
RealArray |
computePosterior(GmComponents gmc,
RealArray points)
Computes the posterior distribution and updates the mean likelihood of the points.
|
protected abstract GmComponents |
initialize(RealArray points,
int nComps,
double regularization)
Initializes the mixture components.
|
GmComponents |
train(RealArray points,
int nComps,
double regularization,
double delta)
Trains the model.
|
protected abstract void |
update(GmComponents gmc,
RealArray posterior,
RealArray points,
double regularization)
Performs the update rule.
|
public GmComponents train(RealArray points, int nComps, double regularization, double delta)
points - the input.nComps - the number of components.regularization - the regularization hint.delta - the change in likelihood required for termination.public RealArray computePosterior(GmComponents gmc, RealArray points)
gmc - the mixture components.points - the input.p(components | points).protected abstract void update(GmComponents gmc, RealArray posterior, RealArray points, double regularization)
gmc - the mixture components.posterior - the posterior distribution p(components | points).points - the input.regularization - the regularization hint.protected abstract GmComponents initialize(RealArray points, int nComps, double regularization)
points - the input.nComps - the number of components.regularization - the regularization hint.protected abstract RealArray computeLogWeightedDensities(GmComponents gmc, RealArray points)
gmc - the mixture components.points - the input.p(points | components).