Documentation of 'org.ddogleg.clustering.gmm.AssignGmm_F64' Java class
AssignGmm_F64
org.ddogleg.clustering.gmm

Class AssignGmm_F64

  • All Implemented Interfaces:
    java.io.Serializable, AssignCluster<double[]>


    public class AssignGmm_F64
    extends java.lang.Object
    implements AssignCluster<double[]>
    Given a mixture model it will compute the hard and soft assignment of a point to Gaussians in the cluster.
    See Also:
    Serialized Form
    • Constructor Detail

      • AssignGmm_F64

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

        public AssignGmm_F64(AssignGmm_F64 original)
        Copy constructor
    • Method Detail

      • 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.
      • setMixture

        public void setMixture(java.util.List<GaussianGmm_F64> mixture)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.