![]() |
aimsalgo 6.0.0
Neuroimaging image processing
|
#include <aims/classification/kmeansstrategy.h>


Public Member Functions | |
| 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 ClassifStrategy< T > * | clone () const |
| virtual double | iterate (int &nbOfIterations, std::vector< std::list< Individuals< T > > > &classes) |
| 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 |
Protected Member Functions | |
| virtual float | distance (const Individuals< T > &individual, int classe) |
Protected Attributes | |
| 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 |
Definition at line 55 of file kmeansstrategy.h.
| aims::KmeansStrategy< T >::KmeansStrategy | ( | const KmeansStrategy< T > & | kmeanStrat | ) |
Definition at line 50 of file kmeansstrategy_d.h.
References aims::ClassifStrategy< T >::ClassifStrategy(), KmeansStrategy(), myBeginIndex, myDistance, myEndIndex, myMeanVector, and myVarianceVector.
Referenced by aims::DynamicStrategy< T >::DynamicStrategy(), aims::DynamicStrategy< T >::DynamicStrategy(), and KmeansStrategy().
| aims::KmeansStrategy< T >::KmeansStrategy | ( | int | nbIterations = 50, |
| DistanceType | distanceType = NORM2SQR, | ||
| int | beginIndex = 0, | ||
| int | endIndex = -1, | ||
| const std::vector< Individuals< T > > & | codeVector = std::vector< Individuals<T> >() ) |
Definition at line 62 of file kmeansstrategy_d.h.
References aims::ClassifStrategy< T >::ClassifStrategy(), aims::Distance< T >::infiniteNorm(), aims::INFNORM, myBeginIndex, aims::ClassifStrategy< T >::myCodeVectorsGiven, myDistance, myEndIndex, myMeanVector, aims::NORM1, aims::Distance< T >::norm1(), aims::NORM2, aims::Distance< T >::norm2(), aims::NORM2SQR, and aims::Distance< T >::norm2sqr().
|
virtual |
Definition at line 92 of file kmeansstrategy_d.h.
|
virtual |
Implements aims::ClassifStrategy< T >.
Definition at line 268 of file kmeansstrategy_d.h.
References myBeginIndex, myDistance, myEndIndex, myMeanVector, and aims::Individuals< T >::value().
Referenced by aims::DynamicStrategy< T >::iterate(), and iterate().
|
virtual |
Implements aims::ClassifStrategy< T >.
Definition at line 215 of file kmeansstrategy_d.h.
References myMeanVector, and myVarianceVector.
Referenced by init(), aims::DynamicStrategy< T >::iterate(), and iterate().
|
virtual |
Implements aims::ClassifStrategy< T >.
Reimplemented in aims::DynamicStrategy< T >.
Definition at line 98 of file kmeansstrategy_d.h.
|
protectedvirtual |
Implements aims::ClassifStrategy< T >.
Definition at line 312 of file kmeansstrategy_d.h.
References myBeginIndex, myDistance, myEndIndex, myMeanVector, and aims::Individuals< T >::value().
|
inlinevirtual |
Implements aims::ClassifStrategy< T >.
Definition at line 78 of file kmeansstrategy.h.
References myMeanVector.
Referenced by aims::DynamicStrategy< T >::centerComputation().
|
inlinevirtual |
Implements aims::ClassifStrategy< T >.
Definition at line 79 of file kmeansstrategy.h.
References myMeanVector.
|
virtual |
Implements aims::ClassifStrategy< T >.
Definition at line 290 of file kmeansstrategy_d.h.
References myBeginIndex, myDistance, myEndIndex, and myMeanVector.
Referenced by aims::DynamicStrategy< T >::iterate(), and iterate().
|
virtual |
Implements aims::ClassifStrategy< T >.
Definition at line 105 of file kmeansstrategy_d.h.
References analyse(), myEndIndex, myMeanVector, and aims::ClassifStrategy< T >::myValidStrategy.
|
virtual |
Implements aims::ClassifStrategy< T >.
Reimplemented in aims::DynamicStrategy< T >.
Definition at line 174 of file kmeansstrategy_d.h.
References aggregate(), analyse(), and globInertia().
|
protected |
Definition at line 91 of file kmeansstrategy.h.
Referenced by aggregate(), distance(), aims::DynamicStrategy< T >::DynamicStrategy(), globInertia(), KmeansStrategy(), and KmeansStrategy().
|
protected |
Definition at line 87 of file kmeansstrategy.h.
Referenced by aggregate(), distance(), aims::DynamicStrategy< T >::DynamicStrategy(), globInertia(), KmeansStrategy(), and KmeansStrategy().
|
protected |
Definition at line 91 of file kmeansstrategy.h.
Referenced by aggregate(), distance(), aims::DynamicStrategy< T >::DynamicStrategy(), globInertia(), init(), KmeansStrategy(), and KmeansStrategy().
|
protected |
Definition at line 89 of file kmeansstrategy.h.
Referenced by aggregate(), analyse(), aims::DynamicStrategy< T >::centerComputation(), distance(), aims::DynamicStrategy< T >::DynamicStrategy(), getMeanValue(), getMeanVector(), globInertia(), init(), KmeansStrategy(), and KmeansStrategy().
|
protected |
Definition at line 90 of file kmeansstrategy.h.
Referenced by analyse(), aims::DynamicStrategy< T >::DynamicStrategy(), and KmeansStrategy().