public interface EMClusterModel<M extends MeanModel>
Modifier and Type | Method and Description |
---|---|
void |
beginEStep()
Begin the E step.
|
double |
estimateLogDensity(NumberVector vec)
Estimate the log likelihood of a vector.
|
M |
finalizeCluster()
Finalize a cluster model.
|
void |
finalizeEStep(double weight,
double prior)
Finalize the E step.
|
default void |
finalizeFirstPassE()
Finalize the first pass of the E step.
|
default void |
firstPassE(NumberVector vec,
double weight)
First run in the E step.
|
double |
getWeight()
Get the cluster weight.
|
default boolean |
needsTwoPass()
True, if the model needs two passes in the E step.
|
void |
setWeight(double weight)
Set the cluster weight.
|
void |
updateE(NumberVector vec,
double weight)
Process one data point in the E step
|
void beginEStep()
default boolean needsTwoPass()
true
when an initial pass is needed.default void firstPassE(NumberVector vec, double weight)
needsTwoPass()
.vec
- Vector to processweight
- Weight of point ("responsibility" of the cluster)default void finalizeFirstPassE()
needsTwoPass()
.void updateE(NumberVector vec, double weight)
vec
- Vector to processweight
- Weight of point ("responsibility" of the cluster)void finalizeEStep(double weight, double prior)
weight
- weight of the clusterprior
- MAP prior (0 for MLE)double estimateLogDensity(NumberVector vec)
vec
- VectorM finalizeCluster()
double getWeight()
void setWeight(double weight)
weight
- Cluster weightCopyright © 2019 ELKI Development Team. License information.