Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.database
Class LabelsFromClustering

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.database.LabelsFromClustering

public class LabelsFromClustering
extends Object

This class generates a labeled database based on an existing clustering result.

Author:
Erich Schubert

Field Summary
private  String label_prefix
           
 
Constructor Summary
LabelsFromClustering()
           
 
Method Summary
<O extends DatabaseObject,R extends Clustering<M>,M extends Model,L extends ClassLabel>
Database<O>
makeDatabaseFromClustering(Database<O> olddb, R clustering, Class<L> classLabel)
          Retrieve a cloned database that - does not contain noise points - has labels assigned based on the given clustering Useful for e.g. training a classifier based on a clustering.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

label_prefix

private String label_prefix
Constructor Detail

LabelsFromClustering

public LabelsFromClustering()
Method Detail

makeDatabaseFromClustering

public <O extends DatabaseObject,R extends Clustering<M>,M extends Model,L extends ClassLabel> Database<O> makeDatabaseFromClustering(Database<O> olddb,
                                                                                                                                      R clustering,
                                                                                                                                      Class<L> classLabel)
                                                              throws UnableToComplyException
Retrieve a cloned database that - does not contain noise points - has labels assigned based on the given clustering Useful for e.g. training a classifier based on a clustering.

Type Parameters:
O - Database object type
R - Clustering Result
M - Cluster Model class
L - Label class
Parameters:
olddb - database the original objects come from
clustering - clustering to work on
classLabel - label class to use.
Returns:
new database
Throws:
UnableToComplyException

Release 0.2.1 (2009-07-13_1605)