A.I.M.S algorithms


aims::DynamicStrategy< T > Class Template Reference

#include <aims/classification/dynamicstrategy.h>

Inheritance diagram for aims::DynamicStrategy< T >:
Collaboration diagram for aims::DynamicStrategy< T >:

Public Member Functions

 DynamicStrategy (const DynamicStrategy< T > &dynamicStrat)
 
 DynamicStrategy (int nbIterations=50, DistanceType distanceType=NORM2SQR, int beginIndex=0, int endIndex=-1, const std::vector< aims::Individuals< T > > &codeVector=std::vector< Individuals< T > >())
 
virtual ~DynamicStrategy ()
 
virtual ClassifStrategy< T > * clone () const
 
virtual double iterate (int &nbOfIterations, std::vector< std::list< Individuals< T > > > &classes)
 
void centerComputation (int cNew, int cOld, unsigned int cardNew, unsigned int cardOld, const Individuals< T > &ind)
 
- Public Member Functions inherited from aims::KmeansStrategy< T >
 KmeansStrategy (const KmeansStrategy< T > &kmeanStrat)
 
 KmeansStrategy (int nbIterations=50, DistanceType distanceType=NORM2SQR, int beginIndex=0, int endIndex=-1, const std::vector< Individuals< T > > &codeVector=std::vector< Individuals< T > >())
 
virtual ~KmeansStrategy ()
 
virtual void init (std::string initializationType, int nbOfClasses, std::vector< std::list< Individuals< T > > > &classes)
 
virtual void analyse (const std::vector< std::list< Individuals< T > > > &classes)
 
virtual int aggregate (const Individuals< T > &individual)
 
virtual Individuals< T > getMeanValue (int classe)
 
virtual std::vector
< Individuals< T > > 
getMeanVector ()
 
virtual double globInertia (const std::vector< std::list< Individuals< T > > > &classes)
 
- Public Member Functions inherited from aims::ClassifStrategy< T >
 ClassifStrategy (int maxNbOfIterations=50)
 
virtual ~ClassifStrategy ()
 
bool isValidStrategy ()
 
void reset ()
 
bool isInit ()
 
bool isCodeVectorsGiven ()
 
int getMaxNbOfIterations () const
 

Additional Inherited Members

- Protected Member Functions inherited from aims::KmeansStrategy< T >
virtual float distance (const Individuals< T > &individual, int classe)
 
- Protected Attributes inherited from aims::KmeansStrategy< T >
float(* myDistance )(const std::vector< T > &ind1, const std::vector< T > &ind2, unsigned int beginIndex, unsigned int endIndex)
 
std::vector< Individuals< T > > myMeanVector
 
std::vector< Individuals< T > > myVarianceVector
 
int myBeginIndex
 
int myEndIndex
 
- Protected Attributes inherited from aims::ClassifStrategy< T >
int myMaxNbOfIterations
 
bool myValidStrategy
 
bool myInit
 
bool myCodeVectorsGiven
 

Detailed Description

template<class T>
class aims::DynamicStrategy< T >

Definition at line 48 of file dynamicstrategy.h.

Constructor & Destructor Documentation

template<class T >
aims::DynamicStrategy< T >::DynamicStrategy ( int  nbIterations = 50,
DistanceType  distanceType = NORM2SQR,
int  beginIndex = 0,
int  endIndex = -1,
const std::vector< aims::Individuals< T > > &  codeVector = std::vector< Individuals<T> >() 
)

Definition at line 61 of file dynamicstrategy_d.h.

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

Definition at line 70 of file dynamicstrategy_d.h.

Member Function Documentation

template<class T >
void aims::DynamicStrategy< T >::centerComputation ( int  cNew,
int  cOld,
unsigned int  cardNew,
unsigned int  cardOld,
const Individuals< T > &  ind 
)
template<class T >
aims::ClassifStrategy< T > * aims::DynamicStrategy< T >::clone ( ) const
virtual

Reimplemented from aims::KmeansStrategy< T >.

Definition at line 76 of file dynamicstrategy_d.h.

template<class T >
double aims::DynamicStrategy< T >::iterate ( int &  nbOfIterations,
std::vector< std::list< Individuals< T > > > &  classes 
)
virtual

Reimplemented from aims::KmeansStrategy< T >.

Definition at line 83 of file dynamicstrategy_d.h.


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