Class KMeansProcessor.Instance<V extends NumberVector>

    • Field Detail

      • means

        private double[][] means
        Current mean vectors.
      • centroids

        private double[][] centroids
        Updated cluster centroids
      • sizes

        private int[] sizes
        (Partial) cluster sizes
      • varsum

        private double[] varsum
        Variance sum.
      • changed

        private boolean changed
        Changed flag.
    • Constructor Detail

      • Instance

        public Instance​(Relation<V> relation,
                        NumberVectorDistance<? super V> distance,
                        WritableIntegerDataStore assignment,
                        double[][] means)
        Constructor.
        Parameters:
        relation - Data relation
        distance - Distance function
        assignment - Current assignment
        means - Previous mean vectors