Class GeneratorMain.AssignLabelsByDistance

  • Enclosing class:
    GeneratorMain

    private class GeneratorMain.AssignLabelsByDistance
    extends java.lang.Object
    Reassign objects in certain labels; but also always test against the model.
    Author:
    Erich Schubert
    • Field Detail

      • centers

        private double[][] centers
        Cluster centers.
    • Constructor Detail

      • AssignLabelsByDistance

        public AssignLabelsByDistance​(ClassLabel[] labels)
        Constructor.
        Parameters:
        labels - Cluster labels
    • Method Detail

      • clusterCenters

        private double[][] clusterCenters​(java.util.ArrayList<GeneratorInterface> generators,
                                          ClassLabel[] labels)
        Compute the cluster centers for each cluster.
        Parameters:
        generators - Generators
        labels - Labels (null if not needed)
        Returns:
        Cluster centers