Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
measuremodes.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005-2011 LpzRobots development team *
3  * Georg Martius <georg dot martius at web dot de> *
4  * Frank Guettler <guettler at informatik dot uni-leipzig dot de *
5  * Frank Hesse <frank at nld dot ds dot mpg dot de> *
6  * Ralf Der <ralfder at mis dot mpg dot de> *
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU General Public License as published by *
10  * the Free Software Foundation; either version 2 of the License, or *
11  * (at your option) any later version. *
12  * *
13  * This program is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16  * GNU General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU General Public License *
19  * along with this program; if not, write to the *
20  * Free Software Foundation, Inc., *
21  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
22  * *
23  ***************************************************************************/
24 #ifndef _MEASUREMODES_H
25 #define _MEASUREMODES_H
26 
27 /**
28  * usage of the statistictools with different measure modes (examples):
29  *
30  * adds following measure: the force of the nimm2, ID = the force itself,
31  * 3 = has no effect?
32  * stats->addMeasure(myNimm2->getForce(), "force", ID, 3);
33  *
34  * next: the average of the observed value (force), AVG = average,
35  * 50 = average over 50 timesteps (stepspan=50)
36  * stats->addMeasure(myNimm2->getForce(), "forceAvg50", AVG, 50);
37  *
38  * next: the medium of the oserved value (force), MED = medium,
39  * 3 = medium over 3 timesteps (stepspan=3)
40  * stats->addMeasure(myNimm2->getForce(), "forceMed3", MED, 3);
41  *
42  * next: the peak of the observed value above a given threshold
43  * stats->addMeasure(myNimm2->getForce(), "forcePeak1", PEAK, 0, 1.0);
44  *
45  *
46  */
47 
48 
49 /** measure modes of statistical types. If you add a measure mode, you have
50  * naturally to implement this measuremode in statisticmeasure.cpp -
51  * see method StatisticMeasure::step() !
52  */
54  /// returns the value to observe itself
55  ID,
56  /// returns the average value
57  AVG,
58  /// returns the moving average value
60  /// returns the median value
61  MED,
62  /// returns the minimum value
63  MIN,
64  /// returns the maximum value
65  MAX,
66  /// returns only values above defined limit
68  /// returns the sum of the value generated over time (or stepSpan)
69  SUM,
70  /// returns 1 if convergence is reached, otherwise 0
71  /// convergence criteria (epsilon) is given by addMeasure, the convergence
72  /// is reached if value is falling below the criteria of the measure time (stepSpan)
74  /// returns the difference between two successive steps
76  /// returns the difference between two successive steps, normalized with number of steps
78 };
79 
80 #endif
returns the difference between two successive steps
Definition: measuremodes.h:75
MeasureMode
usage of the statistictools with different measure modes (examples):
Definition: measuremodes.h:53
returns the median value
Definition: measuremodes.h:61
returns only values above defined limit
Definition: measuremodes.h:67
returns the difference between two successive steps, normalized with number of steps ...
Definition: measuremodes.h:77
returns the maximum value
Definition: measuremodes.h:65
returns 1 if convergence is reached, otherwise 0 convergence criteria (epsilon) is given by addMeasur...
Definition: measuremodes.h:73
returns the average value
Definition: measuremodes.h:57
returns the moving average value
Definition: measuremodes.h:59
returns the value to observe itself
Definition: measuremodes.h:55
returns the sum of the value generated over time (or stepSpan)
Definition: measuremodes.h:69
returns the minimum value
Definition: measuremodes.h:63