Class KMeansClusterer.NotEnoughClustersException

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    KMeansClusterer<T>

    public static class KMeansClusterer.NotEnoughClustersException
    extends java.lang.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:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NotEnoughClustersException

        public NotEnoughClustersException()
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable