Package samer.models
Class GaussianStatsOnline
- java.lang.Object
-
- samer.tools.NullTask
-
- samer.models.GaussianStats
-
- samer.models.GaussianStatsOnline
-
public class GaussianStatsOnline extends GaussianStats
Similar to GaussianStats: Collect statistics about a vector: accumulates sums and sums of products, then computes mean and covariance. This is NOT a model! Computing energies and probabilities directly from the first and second moments is horrible, since you need the inverse of the covariance matrix. You could, however, use this to train a Gaussian model. BUT uses a moving average with a learning rate to track changes- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description GaussianStatsOnline(VVector vec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
dispose()
void
reset()
void
run()
-
Methods inherited from class samer.models.GaussianStats
getCorrelation, getCovariance, getMean, getMean, starting, stopping
-
-
-
-
Constructor Detail
-
GaussianStatsOnline
public GaussianStatsOnline(VVector vec) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
reset
public void reset()
- Overrides:
reset
in classGaussianStats
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceTask
- Overrides:
dispose
in classGaussianStats
-
-