#include <BB2004Calibrator.h>
Inheritance diagram for CalibrationIndividual:
Public Member Functions | |
CalibrationIndividual () | |
Constructor. | |
virtual void | init (const BBIndividual &initial) |
The function initializes the current individual with another one. | |
virtual void | interpolate (const BBIndividual &other) |
The function interpolates between the current individual and another one. | |
virtual void | extrapolate (const BBIndividual &other) |
The function extrapolates between the current individual and another one. | |
virtual void | mutate () |
The function mutates the current individual. | |
virtual double | getFitness () const |
The function returns the fitness of the individual. | |
void | setFitness (double fitness) |
The function sets the fitness of the individual. | |
void | select () const |
The function copies the genes into the calibration parameters. | |
void | dump () const |
The function prints the genes. | |
Private Types | |
enum | { numOfGenes = 7 } |
Private Attributes | |
double | genes [numOfGenes] |
The genes. | |
double | fitness |
The fitness of this individual. | |
Static Private Attributes | |
double | geneScale [numOfGenes] |
An array that estimates the range of value of a certain gene. |
Definition at line 23 of file BB2004Calibrator.h.
|
Definition at line 26 of file BB2004Calibrator.h. |
|
Constructor.
Definition at line 38 of file BB2004Calibrator.h. |
|
The function initializes the current individual with another one.
Implements BBIndividual. Definition at line 13 of file BB2004Calibrator.cpp. References genes, getRobotConfiguration(), and mutate(). |
Here is the call graph for this function:
|
The function interpolates between the current individual and another one. The result is stored in the current individual.
Implements BBIndividual. Definition at line 21 of file BB2004Calibrator.cpp. References fitness, genes, numOfGenes, and random(). |
Here is the call graph for this function:
|
The function extrapolates between the current individual and another one.
Implements BBIndividual. Definition at line 40 of file BB2004Calibrator.cpp. References fitness, genes, numOfGenes, and random(). |
Here is the call graph for this function:
|
The function mutates the current individual.
Implements BBIndividual. Definition at line 34 of file BB2004Calibrator.cpp. References genes, numOfGenes, and random(). Referenced by init(). |
Here is the call graph for this function:
|
The function returns the fitness of the individual.
Implements BBIndividual. Definition at line 68 of file BB2004Calibrator.h. Referenced by BB2004Calibrator::evolve(). |
|
The function sets the fitness of the individual.
Definition at line 74 of file BB2004Calibrator.h. |
|
The function copies the genes into the calibration parameters.
Definition at line 56 of file BB2004Calibrator.cpp. References genes, getRobotConfiguration(), RobotCalibration::panFactor, RobotConfiguration::setRobotCalibration(), RobotCalibration::tilt2Factor, and RobotCalibration::tiltFactor. |
Here is the call graph for this function:
|
The function prints the genes.
Definition at line 68 of file BB2004Calibrator.cpp. References OutMessage::finishMessage(), genes, getDebugOut(), idText, numOfGenes, and OutMessage::text. Referenced by BB2004Calibrator::evolve(). |
Here is the call graph for this function:
|
An array that estimates the range of value of a certain gene.
Definition at line 30 of file BB2004Calibrator.h. |
|
The genes.
Definition at line 31 of file BB2004Calibrator.h. Referenced by dump(), extrapolate(), init(), interpolate(), mutate(), and select(). |
|
The fitness of this individual.
Definition at line 32 of file BB2004Calibrator.h. Referenced by extrapolate(), and interpolate(). |