Class AssignGmm_F64

java.lang.Object
org.ddogleg.clustering.gmm.AssignGmm_F64
All Implemented Interfaces:
AssignCluster<double[]>

public class AssignGmm_F64 extends Object implements AssignCluster<double[]>
Given a mixture model it will compute the hard and soft assignment of a point to Gaussians in the cluster.
  • Field Details

  • Constructor Details

    • AssignGmm_F64

      public AssignGmm_F64(List<GaussianGmm_F64> mixture)
      Use reference to provided mixtures
    • AssignGmm_F64

      public AssignGmm_F64(AssignGmm_F64 original)
      Copy constructor
  • Method Details

    • assign

      public int assign(double[] point)
      Description copied from interface: AssignCluster
      Assigns the point to cluster which is the best fit.
      Specified by:
      assign in interface AssignCluster<double[]>
      Parameters:
      point - Point which is to be assigned
      Returns:
      Index of the cluster from 0 to N-1
    • assign

      public void assign(double[] point, double[] fit)
      Description copied from interface: AssignCluster
      Performs a soft assignment of a point to all the clusters. Clusters with a better fit will have a larger value in 'fit'. The sum of fit is equal to 1, unless everything is zero. Then it is zero.
      Specified by:
      assign in interface AssignCluster<double[]>
      Parameters:
      point - Point which is to be assigned
      fit - Storage for relative fit quality of each cluster. Length must be at least the number of clusters.
    • getNumberOfClusters

      public int getNumberOfClusters()
      Description copied from interface: AssignCluster
      Total number of clusters.
      Specified by:
      getNumberOfClusters in interface AssignCluster<double[]>
      Returns:
      The total number of clusters.