Class GaussianGmm_F64

java.lang.Object
org.ddogleg.clustering.gmm.GaussianGmm_F64
All Implemented Interfaces:
Serializable

public class GaussianGmm_F64 extends Object implements 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 Details

  • 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

      public GaussianGmm_F64 copy()
    • getMean

      public DMatrixRMaj getMean()
    • setMean

      public void setMean(DMatrixRMaj mean)
    • getCovariance

      public DMatrixRMaj getCovariance()
    • setCovariance

      public void setCovariance(DMatrixRMaj covariance)
    • getWeight

      public double getWeight()
    • setWeight

      public void setWeight(double weight)