Class GeneratorMain.AssignLabelsByDensity

  • Enclosing class:
    GeneratorMain

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

      Fields 
      Modifier and Type Field Description
      private GeneratorInterface curclus
      Current cluster generator.
      private elki.data.ClassLabel[] labels
      Cluster labels.
    • Constructor Summary

      Constructors 
      Constructor Description
      AssignLabelsByDensity​(elki.data.ClassLabel[] labels)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getAssignment​(int i, double[] p)
      Assign a point to a cluster.
      void newCluster​(int i, GeneratorInterface curclus)
      Set the current cluster.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • labels

        private elki.data.ClassLabel[] labels
        Cluster labels.
    • Constructor Detail

      • AssignLabelsByDensity

        public AssignLabelsByDensity​(elki.data.ClassLabel[] labels)
        Constructor.
        Parameters:
        labels - Cluster labels