Robot Simulator of the Robotics Group for Self-Organization of Control
0.8.0
|
#include <trackablemeasure.h>
Public Member Functions | |
TrackableMeasure (std::list< Trackable * > trackableList, const char *measureName, ComplexMeasureMode cmode, std::list< Position > cornerPointList, short dimensions, int numberBins) | |
creates a new TrackableMeasure. More... | |
virtual void | step () |
defined by AbstractMeasure. More... | |
Public Member Functions inherited from ComplexMeasure | |
ComplexMeasure (const char *measureName, ComplexMeasureMode mode, int numberBins) | |
creates a new complex measure. More... | |
virtual void | addObservable (double &observedValue, double minValue, double maxValue) |
adds a observed variable to the measure. More... | |
virtual | ~ComplexMeasure () |
Public Member Functions inherited from AbstractMeasure | |
AbstractMeasure (const char *measureName) | |
virtual | ~AbstractMeasure () |
virtual std::string | getName () const |
virtual double | getValue () const |
virtual double & | getValueAddress () |
virtual void | setStepSize (int newStepSize) |
virtual int | getStepSize () const |
virtual long | getActualStep () const |
virtual void | setDisplayPrecision (int digits) |
virtual int | getDisplayPrecision () const |
Public Member Functions inherited from IMeasure | |
virtual | ~IMeasure () |
Protected Member Functions | |
virtual double | findRange (std::list< Position > positionList, short dim, bool min) |
virtual void | addDimension (short dim, std::list< Position > cornerPointList) |
Protected Member Functions inherited from ComplexMeasure | |
void | calculatePInf () |
calculates the Predictive Information More... | |
void | updateEntropy (int binNumber) |
updates the entropy. More... | |
void | computeEntropy () |
computes the entropy. More... | |
void | initF () |
inits F, neccessary after each call of addObservable() More... | |
Protected Attributes | |
std::list< Trackable * > | trackableList |
ComplexMeasureMode | cmode |
TrackMode | tmode |
Protected Attributes inherited from ComplexMeasure | |
std::list< double * > | observedValueList |
std::list< Discretisizer * > | discretisizerList |
ComplexMeasureMode | mode |
int | numberBins |
long | fSize |
int | historySize |
int * | binNumberHistory |
int | historyIndex |
int * | historyIndexList |
int | historyIndexNumber |
int | historyInterval |
matrix::SparseArray< long, int > | F |
Protected Attributes inherited from AbstractMeasure | |
std::string | name |
double | value |
long | actualStep |
int | stepSize |
int | displayPrecision |
TrackableMeasure | ( | std::list< Trackable * > | trackableList, |
const char * | measureName, | ||
ComplexMeasureMode | cmode, | ||
std::list< Position > | cornerPointList, | ||
short | dimensions, | ||
int | numberBins | ||
) |
creates a new TrackableMeasure.
The position of the Trackables in the given list is counted in a fequency list. The possible positions are given by the cornerPointList, which contains the cornerPoints of the arena where the trackables are placed. the complex measure ist then based on the frequency list
trackableList | the list of the Trackables |
cornerPointList | the list with the cornerPoints of the arena |
dimensions | which dimensions do you like to count? Note that the needed memory is (numberBins^ndim), but calculation costs are O(1) |
cmode | which type of complex measure should be evaluated? |
numberBins | number of bins used for discretisation |
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
defined by AbstractMeasure.
This method is called from StatisticTools for updating the measure in every simStep (ODE).
Reimplemented from ComplexMeasure.
|
protected |
|
protected |
|
protected |