Deterministic Rank Selection. More...

Inheritance diagram for DeterministicRank:

List of all members.

Public Member Functions

 DeterministicRank ()
 Constructor.
virtual ~DeterministicRank ()
 Destructor.
virtual void configure (ConfigurationParameters &params, QString prefix)
 Configure the object using the ConfigurationParameters specified.
virtual void save (ConfigurationParameters &params, QString prefix)
 Save the actual status of parameters into the ConfigurationParameters object passed.
virtual const Genotypeselect ()
 Select a Genotype.
virtual void setGenome (const Genome *g)
 It initialize DeterministicRank.
void setTruncation (int nTruncation)
 Set the truncation parameters.
int truncation ()
 Return truncation.

Static Public Member Functions

static void describe (QString type)
 Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups.

Protected Attributes

int idNext
 Id of the Genotype to be returned on next select() calls.
int nTruncation
 Truncation; i.e.

Detailed Description

Deterministic Rank Selection.

Description
DeterministicRank select Genotypes starting from the first and cycling modulo truncation parameter.
Warnings

Definition at line 37 of file deterministicrank.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 27 of file deterministicrank.cpp.

References DeterministicRank::nTruncation.

~DeterministicRank ( ) [virtual]

Destructor.

Definition at line 32 of file deterministicrank.cpp.


Member Function Documentation

void configure ( ConfigurationParameters params,
QString  prefix 
) [virtual]

Configure the object using the ConfigurationParameters specified.

Parameters:
paramsthe object with configuration parameters
prefixthe group in which parameters are expected to be (this is terminated by a separator character). We expect to receive as prefix the group with selection parameters

Implements ParameterSettableWithConfigureFunction.

Definition at line 53 of file deterministicrank.cpp.

References ConfigurationParameters::getValue(), and DeterministicRank::nTruncation.

void describe ( QString  type) [static]
void save ( ConfigurationParameters params,
QString  prefix 
) [virtual]

Save the actual status of parameters into the ConfigurationParameters object passed.

Parameters:
paramsthe configuration parameters object on which save actual parameters
prefixthe prefix to use to access the object configuration parameters.

Implements ParameterSettable.

Definition at line 57 of file deterministicrank.cpp.

References ConfigurationParameters::createParameter(), and DeterministicRank::nTruncation.

const Genotype * select ( ) [virtual]
void setGenome ( const Genome g) [virtual]

It initialize DeterministicRank.

In details, it will sort the Genome and the next select() will return the first (best) Genotype

Reimplemented from Selection.

Definition at line 40 of file deterministicrank.cpp.

References DeterministicRank::idNext.

void setTruncation ( int  nTruncation)

Set the truncation parameters.

Definition at line 45 of file deterministicrank.cpp.

References DeterministicRank::nTruncation.

int truncation ( )

Return truncation.

Definition at line 49 of file deterministicrank.cpp.

References DeterministicRank::nTruncation.


Member Data Documentation

int idNext [protected]

Id of the Genotype to be returned on next select() calls.

Definition at line 74 of file deterministicrank.h.

Referenced by DeterministicRank::select(), and DeterministicRank::setGenome().


The documentation for this class was generated from the following files: