CluE
1.0
|
Lloyd type algorithm using clustering features. More...
#include <lloydtypecf.h>
Public Member Functions | |
LloydtypeCF (std::vector< T * > const *data=NULL, EuclideanSpaceProvider< T > const *s=NULL, DissimilarityMeasure< T > *m=NULL, unsigned int maxIterations=0) | |
Constructor initializing input, seeding the centers and configuring the algorithm. More... | |
LloydtypeCF (std::vector< T > const &seeds, std::vector< T * > const *data=NULL, EuclideanSpaceProvider< T > const *s=NULL, DissimilarityMeasure< T > *m=NULL, unsigned int maxIterations=0) | |
Constructor initializing input, seeding the centers and configuring the algorithm. More... | |
LloydtypeCF (std::vector< T * > const &seeds, std::vector< T * > const *data=NULL, EuclideanSpaceProvider< T > const *s=NULL, DissimilarityMeasure< T > *m=NULL, unsigned int i=0) | |
LloydtypeCF (const LloydtypeCF< T > &) | |
LloydtypeCF< T > & | operator= (const LloydtypeCF< T > &) |
virtual | ~LloydtypeCF () |
virtual LloydtypeCFSolution< T > * | compute () |
virtual void | setInput (std::vector< T * > const *) |
void | setSeeding (std::vector< T > const &) |
void | setSeeding (std::vector< T * > const &) |
void | setEuclideanSpaceProvider (EuclideanSpaceProvider< T > const *) |
virtual void | setMeasure (DissimilarityMeasure< T > const *) |
![]() | |
virtual | ~Algorithm () |
Static Public Member Functions | |
static LloydtypeCF< T > * | toLloydtypeCF (Algorithm *a) |
does a dynamic cast of the given Algorithm to LloydtypeCF<T> More... | |
Private Attributes | |
std::vector< T * > const * | input |
std::vector< T > | seeding |
EuclideanSpaceProvider< T > * | espace |
DissimilarityMeasure< T > * | measure |
unsigned int | maxiterations |
Lloyd type algorithm using clustering features.
Definition at line 46 of file lloydtypecf.h.
CluE::LloydtypeCF< T >::LloydtypeCF | ( | std::vector< T * > const * | data = NULL , |
EuclideanSpaceProvider< T > const * | s = NULL , |
||
DissimilarityMeasure< T > * | m = NULL , |
||
unsigned int | maxIterations = 0 |
||
) |
Constructor initializing input, seeding the centers and configuring the algorithm.
Definition at line 101 of file lloydtypecf.h.
CluE::LloydtypeCF< T >::LloydtypeCF | ( | std::vector< T > const & | seeds, |
std::vector< T * > const * | data = NULL , |
||
EuclideanSpaceProvider< T > const * | s = NULL , |
||
DissimilarityMeasure< T > * | m = NULL , |
||
unsigned int | maxIterations = 0 |
||
) |
Constructor initializing input, seeding the centers and configuring the algorithm.
seeds | seed for centers as vector of objects |
Definition at line 107 of file lloydtypecf.h.
CluE::LloydtypeCF< T >::LloydtypeCF | ( | std::vector< T * > const & | seeds, |
std::vector< T * > const * | data = NULL , |
||
EuclideanSpaceProvider< T > const * | s = NULL , |
||
DissimilarityMeasure< T > * | m = NULL , |
||
unsigned int | i = 0 |
||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 114 of file lloydtypecf.h.
CluE::LloydtypeCF< T >::LloydtypeCF | ( | const LloydtypeCF< T > & | rhs | ) |
Definition at line 122 of file lloydtypecf.h.
|
virtual |
Definition at line 144 of file lloydtypecf.h.
LloydtypeCF< T > & CluE::LloydtypeCF< T >::operator= | ( | const LloydtypeCF< T > & | rhs | ) |
Definition at line 129 of file lloydtypecf.h.
|
virtual |
InvalidRuntimeConfigurationException | [0] Input is NULL. |
InvalidRuntimeConfigurationException | [1] Dissimilarity measure is NULL. |
InvalidRuntimeConfigurationException | [2] Euclidean space provider is NULL. |
InvalidRuntimeConfigurationException | [3] Empty seeding. |
Implements CluE::Algorithm.
Definition at line 150 of file lloydtypecf.h.
|
virtual |
Implements CluE::InputSetter< T >.
Definition at line 251 of file lloydtypecf.h.
void CluE::LloydtypeCF< T >::setSeeding | ( | std::vector< T > const & | seeds | ) |
Definition at line 256 of file lloydtypecf.h.
void CluE::LloydtypeCF< T >::setSeeding | ( | std::vector< T * > const & | seeds | ) |
Definition at line 261 of file lloydtypecf.h.
void CluE::LloydtypeCF< T >::setEuclideanSpaceProvider | ( | EuclideanSpaceProvider< T > const * | m | ) |
Definition at line 274 of file lloydtypecf.h.
|
virtual |
Implements CluE::MeasureSetter< T >.
Definition at line 269 of file lloydtypecf.h.
|
static |
does a dynamic cast of the given Algorithm to LloydtypeCF<T>
Definition at line 279 of file lloydtypecf.h.
|
private |
Definition at line 94 of file lloydtypecf.h.
|
private |
Definition at line 95 of file lloydtypecf.h.
|
private |
Definition at line 96 of file lloydtypecf.h.
|
private |
Definition at line 97 of file lloydtypecf.h.
|
private |
Definition at line 98 of file lloydtypecf.h.