Class KMeansModel

  • All Implemented Interfaces:
    Model, PrototypeModel<double[]>, TextWriteable

    public class KMeansModel
    extends MeanModel
    Trivial subclass of the MeanModel that indicates the clustering to be produced by k-means (so the Voronoi cell visualization is sensible).
    Since:
    0.5.5
    Author:
    Erich Schubert
    • Field Detail

      • varsum

        double varsum
        Variance sum.
    • Constructor Detail

      • KMeansModel

        public KMeansModel​(double[] mean,
                           double varsum)
        Constructor with mean.
        Parameters:
        mean - Mean vector.
        varsum - Variance sum.
    • Method Detail

      • getVarianceContribution

        public double getVarianceContribution()
        Get the variance contribution of the cluster (sum of variances)
        Returns:
        Sum of in-cluster variance