CluE  1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CluE::Agglomerative< T > Class Template Reference

Agglomerative clustering algorithm. More...

#include <agglomerative.h>

Inheritance diagram for CluE::Agglomerative< T >:
Inheritance graph
Collaboration diagram for CluE::Agglomerative< T >:
Collaboration graph

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)
 
- Public Member Functions inherited from CluE::Algorithm
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
 

Detailed Description

template<typename T>
class CluE::Agglomerative< T >

Agglomerative clustering algorithm.

Definition at line 23 of file agglomerative.h.

Member Enumeration Documentation

template<typename T>
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.

Constructor & Destructor Documentation

template<typename T >
CluE::Agglomerative< T >::Agglomerative ( std::vector< T * > const *  data,
ClusterDissimilarityMeasure< T > *  measure = NULL,
int  calculationTime = OnDemand 
)

Definition at line 68 of file agglomerative.h.

template<typename T >
CluE::Agglomerative< T >::Agglomerative ( const Agglomerative< T > &  rhs)

Definition at line 74 of file agglomerative.h.

template<typename T >
CluE::Agglomerative< T >::~Agglomerative ( )
virtual

Definition at line 91 of file agglomerative.h.

Member Function Documentation

template<typename T >
Agglomerative< T > & CluE::Agglomerative< T >::operator= ( const Agglomerative< T > &  rhs)

Definition at line 79 of file agglomerative.h.

template<typename T >
PartitionSolution< T > * CluE::Agglomerative< T >::compute ( )
virtual
Exceptions
InvalidRuntimeException[0] Input is NULL.
InvalidRuntimeException[1] Dissimilarity measure is NULL.

Implements CluE::Algorithm.

Definition at line 96 of file agglomerative.h.

template<typename T >
void CluE::Agglomerative< T >::setInput ( std::vector< T * > const *  data)
virtual

Implements CluE::InputSetter< T >.

Definition at line 203 of file agglomerative.h.

template<typename T >
void CluE::Agglomerative< T >::setMeasure ( ClusterDissimilarityMeasure< T > const *  m)
virtual

Implements CluE::ClusterMeasureSetter< T >.

Definition at line 208 of file agglomerative.h.

template<typename T >
void CluE::Agglomerative< T >::setMode ( int  m)

Definition at line 213 of file agglomerative.h.

template<typename T >
Agglomerative< T > * CluE::Agglomerative< T >::toAgglomerative ( Algorithm s)
static

does a dynamic cast of the given Algorithm to Agglomerative<T>

Returns
NULL if the Algorithm is not a Agglomerative<T> instance

Definition at line 218 of file agglomerative.h.

Member Data Documentation

template<typename T>
std::vector<T*> const* CluE::Agglomerative< T >::input
private

Definition at line 63 of file agglomerative.h.

template<typename T>
ClusterDissimilarityMeasure<T>* CluE::Agglomerative< T >::measure
private

Definition at line 64 of file agglomerative.h.

template<typename T>
int CluE::Agglomerative< T >::mode
private

Definition at line 65 of file agglomerative.h.


The documentation for this class was generated from the following file: