AURobotServers  4
Public Member Functions | List of all members
UFuzzyElement Class Reference

#include <ufuzzyelement.h>

Inheritance diagram for UFuzzyElement:
Inheritance graph

Public Member Functions

virtual bool addCovariance (int clust, double m, UMatrix *mF, UMatrix *mV, double *membSum)
 
virtual bool addPosition (int clust, double m, UMatrix *mAvg, double *membSum)
 
virtual int getClass (int clustCnt)
 
virtual int getMaxClusterCnt ()
 
virtual double getMembValue (int clust)
 
virtual double getMembValueChange (int clustCnt)
 
virtual int getVectorSize ()
 
virtual void print (const char *prestring, int clustCnt)
 
virtual void seedRandom (int clustCnt)
 
virtual bool setDistance (int clust, UMatrix *mAi, UMatrix *mV)
 
virtual void setMembValue (double value, int clust)
 
 UFuzzyElement ()
 
virtual void updateMembValue (double m, int clstCnt)
 
virtual ~UFuzzyElement ()
 

Detailed Description

An element in a fuzzy classifier

Author
Christian Andersen

Constructor & Destructor Documentation

UFuzzyElement::UFuzzyElement ( )

Constructor

UFuzzyElement::~UFuzzyElement ( )
virtual

Destructor

Member Function Documentation

bool UFuzzyElement::addCovariance ( int  clust,
double  m,
UMatrix mF,
UMatrix mV,
double *  membSum 
)
virtual

Add the squared distance from this cluster center weighted with the membership value, and add membership value to 'membSum'. weight and membership value must be raised to power m.

Reimplemented in UFuzzyPixel.

Referenced by UFuzzySplit::classifyOld().

bool UFuzzyElement::addPosition ( int  clust,
double  m,
UMatrix mAvg,
double *  membSum 
)
virtual

Add Position vector to this vector, veightet with the membership value to power m. Add the membership value (to power m) to membSum. Returns false if an error is detected.

Reimplemented in UFuzzyPixel.

Referenced by UFuzzySplit::classifyOld().

int UFuzzyElement::getClass ( int  clustCnt)
virtual

get class for this element

Reimplemented in UFuzzyPixel.

Referenced by UFuzzySplit::updateElement().

int UFuzzyElement::getMaxClusterCnt ( )
virtual

Get maximum number of clusters this element type can be split into

Reimplemented in UFuzzyPixel.

Referenced by UFuzzySplit::classify().

double UFuzzyElement::getMembValue ( int  clust)
virtual

Get membership value of cluster 'cluster'

Reimplemented in UFuzzyPixel.

double UFuzzyElement::getMembValueChange ( int  clustCnt)
virtual

Get membership change value from last iteration

Reimplemented in UFuzzyPixel.

Referenced by UFuzzySplit::classify(), and UFuzzySplit::classifyOld().

int UFuzzyElement::getVectorSize ( )
virtual

Get vector size of element position

Reimplemented in UFuzzyPixel.

Referenced by UFuzzySplit::classify(), and UFuzzySplit::initFromValues().

void UFuzzyElement::print ( const char *  prestring,
int  clustCnt 
)
virtual

Print elemeent values

Reimplemented in UFuzzyPixel.

Referenced by UFuzzySplit::classifyOld().

void UFuzzyElement::seedRandom ( int  clustCnt)
virtual

Seet the element with random membership values

Reimplemented in UFuzzyPixel.

bool UFuzzyElement::setDistance ( int  clust,
UMatrix mAi,
UMatrix mV 
)
virtual

Set distance to cluster 'cluster'. Returns false if parameter errors were found.

Reimplemented in UFuzzyPixel.

Referenced by UFuzzySplit::classify(), UFuzzySplit::classifyOld(), and UFuzzySplit::updateElement().

void UFuzzyElement::setMembValue ( double  value,
int  clust 
)
virtual

Set membership value for a cluster

Reimplemented in UFuzzyPixel.

Referenced by UFuzzySplit::initFromValues().

void UFuzzyElement::updateMembValue ( double  m,
int  clstCnt 
)
virtual

Update participation value based on distance to cluset and this weight exponent value (e.g. 1.3), must be > 1.0. Returns false if there is calculation errors.

Reimplemented in UFuzzyPixel.

Referenced by UFuzzySplit::classify(), UFuzzySplit::classifyOld(), and UFuzzySplit::updateElement().


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