org.ddogleg.clustering.gmm
Class GaussianGmm_F64
- java.lang.Object
-
- org.ddogleg.clustering.gmm.GaussianGmm_F64
-
- All Implemented Interfaces:
- java.io.Serializable
public class GaussianGmm_F64 extends java.lang.Object implements java.io.SerializableA 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description org.ejml.data.DenseMatrix64Fcovarianceorg.ejml.data.DenseMatrix64Fmeandoubleweight
-
Constructor Summary
Constructors Constructor and Description GaussianGmm_F64()GaussianGmm_F64(int DOF)Declares internal data strucures
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddCovariance(double[] difference, double responsibility)Helper function for computing Gaussian parameters.voidaddMean(double[] point, double responsibility)Helper function for computing Gaussian parameters.GaussianGmm_F64copy()org.ejml.data.DenseMatrix64FgetCovariance()org.ejml.data.DenseMatrix64FgetMean()doublegetWeight()voidsetCovariance(org.ejml.data.DenseMatrix64F covariance)voidsetMean(org.ejml.data.DenseMatrix64F mean)voidsetMean(double[] point)Sets the mean to be the same as the provided point\voidsetWeight(double weight)voidzero()Sets the mean, covariance, and weight to zero
-
-
-
Field Detail
-
mean
public org.ejml.data.DenseMatrix64F mean
-
covariance
public org.ejml.data.DenseMatrix64F covariance
-
weight
public double weight
-
-
Constructor Detail
-
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 Detail
-
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
public GaussianGmm_F64 copy()
-
getMean
public org.ejml.data.DenseMatrix64F getMean()
-
setMean
public void setMean(org.ejml.data.DenseMatrix64F mean)
-
getCovariance
public org.ejml.data.DenseMatrix64F getCovariance()
-
setCovariance
public void setCovariance(org.ejml.data.DenseMatrix64F covariance)
-
getWeight
public double getWeight()
-
setWeight
public void setWeight(double weight)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG