GaNormalizationScaling
operation calculates scaled fitness based on ranking of chromosome. This scaling operation doesn't require any parameters.
More...
#include <D:/Temp/vs/gal/source/ScalingOperations.h>
Inherits Population::GaScalingOperation.
Public Member Functions | |
virtual GAL_API float GACALL | operator() (const GaScaledChromosome &chromosome, const GaPopulation &population, const GaScalingParams ¶meters) const |
More details are given in specification of GaScalingOperation::operator () method. | |
virtual bool GACALL | IsRankingBased () const |
More details are given in specification of GaScalingOperation::IsRankingBased method. | |
virtual GAL_API bool GACALL | NeedRescaling (const GaPopulation &population, const GaScalingParams ¶meters) const |
More details are given in specification of GaScalingOperation::NeedRescaling method. | |
virtual GaParameters *GACALL | MakeParameters () const |
More details are given in specification of GaOperation::MakeParameters method. | |
virtual bool GACALL | CheckParameters (const GaParameters ¶meters) const |
More details are given in specification of GaOperation::CheckParameters method. |
GaNormalizationScaling
operation calculates scaled fitness based on ranking of chromosome. This scaling operation doesn't require any parameters.
This class has no built-in synchronizator, so LOCK_OBJECT
and LOCK_THIS_OBJECT
macros cannot be used with instances of this class. Because this genetic operation is stateless all public method are thread-safe.
float Population::ScalingOperations::GaNormalizationScaling::operator() | ( | const GaScaledChromosome & | chromosome, | |
const GaPopulation & | population, | |||
const GaScalingParams & | parameters | |||
) | const [virtual] |
More details are given in specification of GaScalingOperation::operator () method.
This method is thread-safe.
Implements Population::GaScalingOperation.
virtual bool GACALL Population::ScalingOperations::GaNormalizationScaling::IsRankingBased | ( | ) | const [inline, virtual] |
More details are given in specification of GaScalingOperation::IsRankingBased method.
This method is thread-safe.
true
.Implements Population::GaScalingOperation.
bool Population::ScalingOperations::GaNormalizationScaling::NeedRescaling | ( | const GaPopulation & | population, | |
const GaScalingParams & | parameters | |||
) | const [virtual] |
More details are given in specification of GaScalingOperation::NeedRescaling method.
This method is thread-safe.
true
if size of population has changed.Implements Population::GaScalingOperation.
virtual GaParameters* GACALL Population::ScalingOperations::GaNormalizationScaling::MakeParameters | ( | ) | const [inline, virtual] |
More details are given in specification of GaOperation::MakeParameters method.
This method is thread-safe.
NULL
.Implements Common::GaOperation.
virtual bool GACALL Population::ScalingOperations::GaNormalizationScaling::CheckParameters | ( | const GaParameters & | parameters | ) | const [inline, virtual] |
More details are given in specification of GaOperation::CheckParameters method.
This method is thread-safe.
true
.Implements Common::GaOperation.