#include <cFibObjectFitnessBasic.h>
List of all members.
Detailed Description
Definition at line 61 of file cFibObjectFitnessBasic.h.
Constructor & Destructor Documentation
enviroment::fib::cFibObjectFitnessBasic::cFibObjectFitnessBasic |
( |
double |
dInDistanceToOriginal, |
|
|
unsigned long |
lInSize, |
|
|
unsigned long |
lInEvaluationTime, |
|
|
double |
dInWeightDistanceToOriginal = 1.0 , |
|
|
double |
dInWeightSize = 1.0 , |
|
|
double |
dInWeightEvaluationTime = 1.0 , |
|
|
cFibObjectFitnessBasicAlgorithm * |
pInFibObjectFitnessAlgorithm = NULL |
|
) |
| |
|
protected |
constructor
- Parameters:
-
dInFittness | a value for the fitness of the object; the higher this value is the better the fitness |
dInDistanceToOriginal | the distance to the original individual |
- See also:
- dDistanceToOriginal
- Parameters:
-
lInSize | the (compressed) size of the represented fib -object |
lInEvaluationTime | the evaluating time of the represented fib -object |
dInWeightDistanceToOriginal | the weight for the lInDistanceToOriginal value |
dInWeightSize | the weight for the lInSize value |
dInWeightEvaluationTime | the weight for the lInEvaluationTime value |
pInFibObjectFitnessAlgorithm | the algorithm with which this fitness was created; if NULL no algorithm had created this object; Beware: this object won't be copied, if you delete it getFitnessAlgorithm() will return an invalid pointer |
enviroment::fib::cFibObjectFitnessBasic::cFibObjectFitnessBasic |
( |
const cFibObjectFitnessBasic & |
objectFitness | ) |
|
copyconstructor
- Parameters:
-
virtual enviroment::fib::cFibObjectFitnessBasic::~cFibObjectFitnessBasic |
( |
| ) |
|
|
virtual |
Member Function Documentation
bool enviroment::fib::cFibObjectFitnessBasic::changeDifferenceToOriginal |
( |
double |
dDeltaToOriginal | ) |
|
This method changes the dDistanceToOriginal value. dDistanceToOriginal += lDeltaToOriginal
- See also:
- dDistanceToOriginal
- Parameters:
-
dDeltaToOriginal | the value about which the dDistanceToOriginal is to change |
- Returns:
- true if the dDistanceToOriginal is changed, else false
bool enviroment::fib::cFibObjectFitnessBasic::changeSize |
( |
long |
lDeltaSize | ) |
|
This method changes the lSize value. lSize += lDeltaSize
- See also:
- lSize
- Parameters:
-
lDeltaSize | the value about which the lSize is to change |
- Returns:
- true if the lSize is changed, else false
bool enviroment::fib::cFibObjectFitnessBasic::changeTime |
( |
long |
lDeltaEvalueTime | ) |
|
This method changes the lEvaluationTime value. lEvaluationTime += lDeltaEvalueTime
- See also:
- lEvaluationTime
- Parameters:
-
lDeltaSize | the value about which the lEvaluationTime is to change |
- Returns:
- true if the lEvaluationTime is changed, else false
virtual string enviroment::fib::cFibObjectFitnessBasic::getClassName |
( |
| ) |
const |
|
virtual |
double enviroment::fib::cFibObjectFitnessBasic::getDifferenceToOriginal |
( |
| ) |
const |
unsigned long enviroment::fib::cFibObjectFitnessBasic::getSize |
( |
| ) |
const |
- See also:
- lSize
- Returns:
- the (compressed) size of the represented fib -object
unsigned long enviroment::fib::cFibObjectFitnessBasic::getTime |
( |
| ) |
const |
- See also:
- lEvaluationTime
- Returns:
- he evaluating time of the represented fib -object
double enviroment::fib::cFibObjectFitnessBasic::getWeightDistanceToOriginal |
( |
| ) |
const |
double enviroment::fib::cFibObjectFitnessBasic::getWeightEvaluationTime |
( |
| ) |
const |
double enviroment::fib::cFibObjectFitnessBasic::getWeightSize |
( |
| ) |
const |
- See also:
- dWeightSize
- Returns:
- the weight for the lSize value
virtual bool enviroment::fib::cFibObjectFitnessBasic::operator== |
( |
const cFibObjectFitnessBasic & |
fitness | ) |
const |
|
virtual |
Comparisson on equal operator for two fitness objects.
- Parameters:
-
fitness | the fitnessobject to compare this fitnessobject to |
- Returns:
- true if the fitness this object represents is equal to the fitness the given object fitness represents
virtual void enviroment::fib::cFibObjectFitnessBasic::updateFitness |
( |
| ) |
|
|
protectedvirtual |
This method will update the whool fitness with the fitnessparts.
Friends And Related Function Documentation
Member Data Documentation
double enviroment::fib::cFibObjectFitnessBasic::dDistanceToOriginal |
|
protected |
The distance to the original individual. It is the sum of the distances of all values of propertyvectorelements betwean the represented and original fib -object of all positions which are inside the dimension bounderies.
Definition at line 73 of file cFibObjectFitnessBasic.h.
double enviroment::fib::cFibObjectFitnessBasic::dWeightDistanceToOriginal |
|
protected |
double enviroment::fib::cFibObjectFitnessBasic::dWeightEvaluationTime |
|
protected |
double enviroment::fib::cFibObjectFitnessBasic::dWeightSize |
|
protected |
unsigned long enviroment::fib::cFibObjectFitnessBasic::lEvaluationTime |
|
protected |
The evaluating time of the represented fib -object.
- See also:
- cFibElement::getTimeNeed()
Definition at line 97 of file cFibObjectFitnessBasic.h.
unsigned long enviroment::fib::cFibObjectFitnessBasic::lSize |
|
protected |
The (compressed) size of the represented fib -object.
- See also:
- cFibElement::getCompressedSize()
Definition at line 85 of file cFibObjectFitnessBasic.h.
The documentation for this class was generated from the following file: