#include <BB2004Evo.h>
Public Member Functions | |
Statistics (int size) | |
Constructor. | |
~Statistics () | |
Destructor. | |
void | reset () |
The function empties the histogram. | |
void | add (int index) |
The function adds a single entry to the histogram. | |
int | analyze () |
The function analyzes the histogram and brings it into a compact form. | |
int | operator[] (int index) const |
The operator allows for accessing the entries in the histogram. | |
Static Private Member Functions | |
int | compare (const int *i1, const int *i2) |
The function compares two integers as required for qsort. | |
Private Attributes | |
int | size |
The number of entries in the histogram. | |
int * | stats |
A histogram that counts how often each individual was drawn. |
Definition at line 63 of file BB2004Evo.h.
|
Constructor.
Definition at line 86 of file BB2004Evo.h. |
Here is the call graph for this function:
|
Destructor.
Definition at line 96 of file BB2004Evo.h. References stats. |
|
The function compares two integers as required for qsort.
Definition at line 76 of file BB2004Evo.h. |
|
The function empties the histogram.
Definition at line 101 of file BB2004Evo.h. References stats. Referenced by BBPopulation< CalibrationIndividual >::extrapolate(), BBPopulation< CalibrationIndividual >::interpolate(), and Statistics(). |
|
The function adds a single entry to the histogram.
Definition at line 111 of file BB2004Evo.h. References stats. Referenced by BBPopulation< CalibrationIndividual >::drawIndividual(). |
|
The function analyzes the histogram and brings it into a compact form. It removes all empty entries and sorts the others in descending order. Please note that the function destoys the data in the histogram.
Definition at line 119 of file BB2004Evo.h. References stats. Referenced by BB2004Calibrator::evolve(), and BB2004InvKinWalkingEngine::learn(). |
|
The operator allows for accessing the entries in the histogram.
Definition at line 135 of file BB2004Evo.h. References stats. |
|
The number of entries in the histogram.
Definition at line 66 of file BB2004Evo.h. |
|
A histogram that counts how often each individual was drawn.
Definition at line 67 of file BB2004Evo.h. Referenced by add(), analyze(), operator[](), reset(), Statistics(), and ~Statistics(). |