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

Lloyd type algorithm using clustering features. More...

#include <lloydtypecf.h>

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

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

Detailed Description

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

Lloyd type algorithm using clustering features.

Definition at line 46 of file lloydtypecf.h.

Constructor & Destructor Documentation

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

Remarks
Remember to set seeding.

Definition at line 101 of file lloydtypecf.h.

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

Parameters
seedsseed for centers as vector of objects

Definition at line 107 of file lloydtypecf.h.

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

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

Definition at line 122 of file lloydtypecf.h.

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

Definition at line 144 of file lloydtypecf.h.

Member Function Documentation

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

Definition at line 129 of file lloydtypecf.h.

template<typename T >
LloydtypeCFSolution< T > * CluE::LloydtypeCF< T >::compute ( )
virtual
Exceptions
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.

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

Implements CluE::InputSetter< T >.

Definition at line 251 of file lloydtypecf.h.

template<typename T >
void CluE::LloydtypeCF< T >::setSeeding ( std::vector< T > const &  seeds)

Definition at line 256 of file lloydtypecf.h.

template<typename T >
void CluE::LloydtypeCF< T >::setSeeding ( std::vector< T * > const &  seeds)

Definition at line 261 of file lloydtypecf.h.

template<typename T >
void CluE::LloydtypeCF< T >::setEuclideanSpaceProvider ( EuclideanSpaceProvider< T > const *  m)

Definition at line 274 of file lloydtypecf.h.

template<typename T >
void CluE::LloydtypeCF< T >::setMeasure ( DissimilarityMeasure< T > const *  m)
virtual

Implements CluE::MeasureSetter< T >.

Definition at line 269 of file lloydtypecf.h.

template<typename T >
LloydtypeCF< T > * CluE::LloydtypeCF< T >::toLloydtypeCF ( Algorithm a)
static

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

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

Definition at line 279 of file lloydtypecf.h.

Member Data Documentation

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

Definition at line 94 of file lloydtypecf.h.

template<typename T>
std::vector<T> CluE::LloydtypeCF< T >::seeding
private

Definition at line 95 of file lloydtypecf.h.

template<typename T>
EuclideanSpaceProvider<T>* CluE::LloydtypeCF< T >::espace
private

Definition at line 96 of file lloydtypecf.h.

template<typename T>
DissimilarityMeasure<T>* CluE::LloydtypeCF< T >::measure
private

Definition at line 97 of file lloydtypecf.h.

template<typename T>
unsigned int CluE::LloydtypeCF< T >::maxiterations
private

Definition at line 98 of file lloydtypecf.h.


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