public class GmComponents extends Object
Modifier and Type | Field and Description |
---|---|
RealArray |
centers
The centers.
|
RealArray |
covariances
The (diagonal) covariances.
|
double |
likelihood
The likelihood.
|
int |
nRounds
The number of rounds so far.
|
RealArray |
weights
The weights.
|
Constructor and Description |
---|
GmComponents(int nComps,
int nDims)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
regularize(double regularization)
Regularizes the covariances by setting a floor on what they can be.
|
String |
toString()
Creates a human-readable representation of the mixture components.
|
public final RealArray weights
public final RealArray centers
public final RealArray covariances
public double likelihood
M
step.public int nRounds
public GmComponents(int nComps, int nDims)
nComps
- the number of components.nDims
- the dimensionality expected of the data.