edu.uci.ics.jung.algorithms.util
Class KMeansClusterer.NotEnoughClustersException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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.)

Author:
Joshua O'Madadhain
See Also:
Serialized Form

Constructor Summary
KMeansClusterer.NotEnoughClustersException()
           
 
Method Summary
 String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, 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

KMeansClusterer.NotEnoughClustersException

public KMeansClusterer.NotEnoughClustersException()
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2009. All Rights Reserved.