Package org.ddogleg.clustering.gmm
Class GaussianGmm_F64
java.lang.Object
org.ddogleg.clustering.gmm.GaussianGmm_F64
- All Implemented Interfaces:
Serializable
A Gaussian in a Gaussian Mixture Model. Contains a mean, covariance, and weight. Additional functions
are provided to help compute the Gaussian's parameters.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCovariance
(double[] difference, double responsibility) Helper function for computing Gaussian parameters.void
addMean
(double[] point, double responsibility) Helper function for computing Gaussian parameters.copy()
getMean()
double
void
setCovariance
(DMatrixRMaj covariance) void
setMean
(double[] point) Sets the mean to be the same as the provided point\void
setMean
(DMatrixRMaj mean) void
setWeight
(double weight) void
zero()
Sets the mean, covariance, and weight to zero
-
Field Details
-
mean
-
covariance
-
weight
public double weight
-
-
Constructor Details
-
GaussianGmm_F64
public GaussianGmm_F64(int DOF) Declares internal data strucures- Parameters:
DOF
- Number of degrees-of-freedom in the sampled points.
-
GaussianGmm_F64
public GaussianGmm_F64()
-
-
Method Details
-
zero
public void zero()Sets the mean, covariance, and weight to zero -
addMean
public void addMean(double[] point, double responsibility) Helper function for computing Gaussian parameters. Adds the point to mean and weight. -
addCovariance
public void addCovariance(double[] difference, double responsibility) Helper function for computing Gaussian parameters. Adds the difference between point and mean to covariance, adjusted by the weight. -
setMean
public void setMean(double[] point) Sets the mean to be the same as the provided point\ -
copy
-
getMean
-
setMean
-
getCovariance
-
setCovariance
-
getWeight
public double getWeight() -
setWeight
public void setWeight(double weight)
-