CluE
1.0
|
Agglomerative proxy-based clustering algorithm. More...
#include <proxybasedagglo.h>
Public Types | |
enum | ComputationMode { OnDemand, Precompute } |
On demand computation / pre-computation. More... | |
Public Member Functions | |
ProxyBasedAgglo (std::vector< T * > const *=NULL, ProxyGenerator< T > *=NULL, DissimilarityMeasure< T > *=NULL, ComputationMode=OnDemand) | |
ProxyBasedAgglo (const ProxyBasedAgglo< T > &) | |
ProxyBasedAgglo< T > & | operator= (const ProxyBasedAgglo< T > &) |
virtual | ~ProxyBasedAgglo () |
virtual DoubleSolution< T > * | compute () |
virtual void | setInput (std::vector< T * > const *) |
void | setGenerator (ProxyGenerator< T > *) |
virtual void | setMeasure (DissimilarityMeasure< T > *) |
void | setMode (int) |
![]() | |
virtual | ~Algorithm () |
![]() | |
virtual void | setMeasure (DissimilarityMeasure< T > const *measure)=0 |
Static Public Member Functions | |
static ProxyBasedAgglo< T > * | toProxyBasedAgglo (Algorithm *s) |
Does a dynamic cast of the given Algorithm to ProxyBasedAgglo<T>. More... | |
Private Attributes | |
std::vector< T * > const * | input |
ProxyGenerator< T > * | generator |
DissimilarityMeasure< T > * | measure |
int | mode |
Agglomerative proxy-based clustering algorithm.
Algorithm<T> template implementing an agglomerative clustering algorithm based on the computation and comparison of proxies for the computed clusters.
Definition at line 25 of file proxybasedagglo.h.
enum CluE::ProxyBasedAgglo::ComputationMode |
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 |
slow, needs no extra memory fast, needs more memory |
Definition at line 36 of file proxybasedagglo.h.
CluE::ProxyBasedAgglo< T >::ProxyBasedAgglo | ( | std::vector< T * > const * | data = NULL , |
ProxyGenerator< T > * | g = NULL , |
||
DissimilarityMeasure< T > * | m = NULL , |
||
ComputationMode | cm = OnDemand |
||
) |
Definition at line 74 of file proxybasedagglo.h.
CluE::ProxyBasedAgglo< T >::ProxyBasedAgglo | ( | const ProxyBasedAgglo< T > & | rhs | ) |
Definition at line 80 of file proxybasedagglo.h.
|
virtual |
Definition at line 101 of file proxybasedagglo.h.
ProxyBasedAgglo< T > & CluE::ProxyBasedAgglo< T >::operator= | ( | const ProxyBasedAgglo< T > & | rhs | ) |
Definition at line 86 of file proxybasedagglo.h.
|
virtual |
InvalidRuntimeConfigurationException | [0] Input is NULL. |
InvalidRuntimeConfigurationException | [1] Dissimilarity measure is NULL. |
InvalidRuntimeConfigurationException | [2] Proxy generator is NULL. |
Implements CluE::Algorithm.
Definition at line 107 of file proxybasedagglo.h.
|
virtual |
Implements CluE::InputSetter< T >.
Definition at line 232 of file proxybasedagglo.h.
void CluE::ProxyBasedAgglo< T >::setGenerator | ( | ProxyGenerator< T > * | g | ) |
Definition at line 237 of file proxybasedagglo.h.
|
virtual |
Definition at line 242 of file proxybasedagglo.h.
void CluE::ProxyBasedAgglo< T >::setMode | ( | int | m | ) |
Definition at line 247 of file proxybasedagglo.h.
|
static |
Does a dynamic cast of the given Algorithm to ProxyBasedAgglo<T>.
Definition at line 252 of file proxybasedagglo.h.
|
private |
Definition at line 68 of file proxybasedagglo.h.
|
private |
Definition at line 69 of file proxybasedagglo.h.
|
private |
Definition at line 70 of file proxybasedagglo.h.
|
private |
Definition at line 71 of file proxybasedagglo.h.