A.I.M.S algorithms


aims::ClassifStrategy< T > Class Template Referenceabstract

#include <aims/classification/classifstrategy.h>

Inheritance diagram for aims::ClassifStrategy< T >:

Public Member Functions

 ClassifStrategy (int maxNbOfIterations=50)
 
virtual ~ClassifStrategy ()
 
virtual ClassifStrategy< T > * clone () const =0
 
bool isValidStrategy ()
 
void reset ()
 
bool isInit ()
 
bool isCodeVectorsGiven ()
 
int getMaxNbOfIterations () const
 
virtual void init (std::string initializationType, int nbOfClasses, std::vector< std::list< Individuals< T > > > &classes)=0
 
virtual double iterate (int &nbOfIterations, std::vector< std::list< Individuals< T > > > &classes)=0
 
virtual void analyse (const std::vector< std::list< Individuals< T > > > &classes)=0
 
virtual int aggregate (const Individuals< T > &individual)=0
 
virtual Individuals< T > getMeanValue (int classe)=0
 
virtual std::vector
< Individuals< T > > 
getMeanVector ()=0
 
virtual double globInertia (const std::vector< std::list< Individuals< T > > > &classes)=0
 

Protected Member Functions

virtual float distance (const Individuals< T > &individual, int classe)=0
 

Protected Attributes

int myMaxNbOfIterations
 
bool myValidStrategy
 
bool myInit
 
bool myCodeVectorsGiven
 

Detailed Description

template<class T>
class aims::ClassifStrategy< T >

Definition at line 46 of file classifstrategy.h.

Constructor & Destructor Documentation

template<class T >
aims::ClassifStrategy< T >::ClassifStrategy ( int  maxNbOfIterations = 50)

Definition at line 45 of file classifstrategy_d.h.

template<class T >
aims::ClassifStrategy< T >::~ClassifStrategy ( )
virtual

Definition at line 52 of file classifstrategy_d.h.

Member Function Documentation

template<class T>
virtual int aims::ClassifStrategy< T >::aggregate ( const Individuals< T > &  individual)
pure virtual

Implemented in aims::KmeansStrategy< T >.

template<class T>
virtual void aims::ClassifStrategy< T >::analyse ( const std::vector< std::list< Individuals< T > > > &  classes)
pure virtual
template<class T>
virtual float aims::ClassifStrategy< T >::distance ( const Individuals< T > &  individual,
int  classe 
)
protectedpure virtual

Implemented in aims::KmeansStrategy< T >.

template<class T>
int aims::ClassifStrategy< T >::getMaxNbOfIterations ( ) const
inline

Definition at line 56 of file classifstrategy.h.

References aims::ClassifStrategy< T >::myMaxNbOfIterations.

template<class T>
virtual Individuals<T> aims::ClassifStrategy< T >::getMeanValue ( int  classe)
pure virtual

Implemented in aims::KmeansStrategy< T >.

template<class T>
virtual std::vector< Individuals<T> > aims::ClassifStrategy< T >::getMeanVector ( )
pure virtual

Implemented in aims::KmeansStrategy< T >.

template<class T>
virtual double aims::ClassifStrategy< T >::globInertia ( const std::vector< std::list< Individuals< T > > > &  classes)
pure virtual

Implemented in aims::KmeansStrategy< T >.

template<class T>
virtual void aims::ClassifStrategy< T >::init ( std::string  initializationType,
int  nbOfClasses,
std::vector< std::list< Individuals< T > > > &  classes 
)
pure virtual

Implemented in aims::KmeansStrategy< T >.

template<class T>
bool aims::ClassifStrategy< T >::isCodeVectorsGiven ( )
inline

Definition at line 55 of file classifstrategy.h.

References aims::ClassifStrategy< T >::myCodeVectorsGiven.

template<class T>
bool aims::ClassifStrategy< T >::isInit ( )
inline

Definition at line 54 of file classifstrategy.h.

References aims::ClassifStrategy< T >::myInit.

template<class T>
bool aims::ClassifStrategy< T >::isValidStrategy ( )
inline

Definition at line 52 of file classifstrategy.h.

References aims::ClassifStrategy< T >::myValidStrategy.

template<class T>
virtual double aims::ClassifStrategy< T >::iterate ( int &  nbOfIterations,
std::vector< std::list< Individuals< T > > > &  classes 
)
pure virtual
template<class T>
void aims::ClassifStrategy< T >::reset ( )
inline

Definition at line 53 of file classifstrategy.h.

References aims::ClassifStrategy< T >::myInit.

Member Data Documentation

template<class T>
bool aims::ClassifStrategy< T >::myCodeVectorsGiven
protected
template<class T>
bool aims::ClassifStrategy< T >::myInit
protected
template<class T>
int aims::ClassifStrategy< T >::myMaxNbOfIterations
protected

Definition at line 73 of file classifstrategy.h.

Referenced by aims::ClassifStrategy< T >::getMaxNbOfIterations().

template<class T>
bool aims::ClassifStrategy< T >::myValidStrategy
protected

Definition at line 74 of file classifstrategy.h.

Referenced by aims::ClassifStrategy< T >::isValidStrategy().


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