CluE
1.0
|
Agglomerative clustering algorithm. More...
#include <agglomerative.h>
Public Types | |
enum | { OnDemand, Precompute } |
On demand computation / pre-computation. More... | |
Public Member Functions | |
Agglomerative (std::vector< T * > const *data, ClusterDissimilarityMeasure< T > *measure=NULL, int calculationTime=OnDemand) | |
Agglomerative (const Agglomerative< T > &) | |
Agglomerative< T > & | operator= (const Agglomerative< T > &) |
virtual | ~Agglomerative () |
virtual PartitionSolution< T > * | compute () |
virtual void | setInput (std::vector< T * > const *) |
virtual void | setMeasure (ClusterDissimilarityMeasure< T > const *) |
void | setMode (int) |
![]() | |
virtual | ~Algorithm () |
Static Public Member Functions | |
static Agglomerative< T > * | toAgglomerative (Algorithm *s) |
does a dynamic cast of the given Algorithm to Agglomerative<T> More... | |
Private Attributes | |
std::vector< T * > const * | input |
ClusterDissimilarityMeasure< T > * | measure |
int | mode |
Agglomerative clustering algorithm.
Definition at line 23 of file agglomerative.h.
anonymous enum |
On demand computation / pre-computation.
This enum is used to tell the algorithm via the constructor if the dissimilarities should be computed on demand everytime they are needed or if they should be precomputed, held in memory and be updated whenever a dissimilarity may have changed.
Enumerator | |
---|---|
OnDemand | |
Precompute |
Definition at line 33 of file agglomerative.h.
CluE::Agglomerative< T >::Agglomerative | ( | std::vector< T * > const * | data, |
ClusterDissimilarityMeasure< T > * | measure = NULL , |
||
int | calculationTime = OnDemand |
||
) |
Definition at line 68 of file agglomerative.h.
CluE::Agglomerative< T >::Agglomerative | ( | const Agglomerative< T > & | rhs | ) |
Definition at line 74 of file agglomerative.h.
|
virtual |
Definition at line 91 of file agglomerative.h.
Agglomerative< T > & CluE::Agglomerative< T >::operator= | ( | const Agglomerative< T > & | rhs | ) |
Definition at line 79 of file agglomerative.h.
|
virtual |
InvalidRuntimeException | [0] Input is NULL. |
InvalidRuntimeException | [1] Dissimilarity measure is NULL. |
Implements CluE::Algorithm.
Definition at line 96 of file agglomerative.h.
|
virtual |
Implements CluE::InputSetter< T >.
Definition at line 203 of file agglomerative.h.
|
virtual |
Implements CluE::ClusterMeasureSetter< T >.
Definition at line 208 of file agglomerative.h.
void CluE::Agglomerative< T >::setMode | ( | int | m | ) |
Definition at line 213 of file agglomerative.h.
|
static |
does a dynamic cast of the given Algorithm to Agglomerative<T>
Definition at line 218 of file agglomerative.h.
|
private |
Definition at line 63 of file agglomerative.h.
|
private |
Definition at line 64 of file agglomerative.h.
|
private |
Definition at line 65 of file agglomerative.h.