de.lmu.ifi.dbs.elki.algorithm.clustering
Class TrivialAllInOne<O extends DatabaseObject>
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm<O,Clustering<Model>>
de.lmu.ifi.dbs.elki.algorithm.clustering.TrivialAllInOne<O>
- Type Parameters:
O
- Object type
- All Implemented Interfaces:
- Algorithm<O,Clustering<Model>>, ClusteringAlgorithm<Clustering<Model>,O>, Parameterizable
@Title(value="Trivial all-in-one clustering")
@Description(value="Returns a \'tivial\' clustering which just considers all points to be one big cluster.")
public class TrivialAllInOne<O extends DatabaseObject>
- extends AbstractAlgorithm<O,Clustering<Model>>
- implements ClusteringAlgorithm<Clustering<Model>,O>
Trivial pseudo-clustering that just considers all points to be one big
cluster.
Useful for evaluation and testing.
- Author:
- Erich Schubert
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrivialAllInOne
public TrivialAllInOne(Parameterization config)
- Constructor, adhering to
Parameterizable
- Parameters:
config
- Parameterization
TrivialAllInOne
public TrivialAllInOne()
- Constructor, adhering to
Parameterizable
runInTime
protected Clustering<Model> runInTime(Database<O> database)
throws IllegalStateException
- Run the actual clustering algorithm.
- Specified by:
runInTime
in class AbstractAlgorithm<O extends DatabaseObject,Clustering<Model>>
- Parameters:
database
- The database to process
- Returns:
- the Result computed by this algorithm
- Throws:
IllegalStateException
- if the algorithm has not been initialized
properly (e.g. the setParameters(String[]) method has been failed
to be called).