Class KMeansClusterer.NotEnoughClustersException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.uci.ics.jung.algorithms.util.KMeansClusterer.NotEnoughClustersException
All Implemented Interfaces:
Serializable
Enclosing class:
KMeansClusterer<T>

public static class KMeansClusterer.NotEnoughClustersException extends RuntimeException
An exception that indicates that the specified data points cannot be clustered into the number of clusters requested by the user. This will happen if and only if there are fewer distinct points than requested clusters. (If there are fewer total data points than requested clusters, IllegalArgumentException will be thrown.)
See Also:
  • Constructor Details

    • NotEnoughClustersException

      public NotEnoughClustersException()
  • Method Details