ECF 1.5
Public Member Functions | Protected Attributes | List of all members

Random individual selection operator. More...

#include <SelRandomOp.h>

Inheritance diagram for SelRandomOp:
SelectionOperator

Public Member Functions

bool initialize (StateP)
 Selection operator initialization. Must be called before individual selection. More...
 
IndividualP select (const std::vector< IndividualP > &)
 Select one individual from a set. More...
 
virtual bool initialize (StateP)=0
 Selection operator initialization. Must be called before individual selection. More...
 
virtual IndividualP select (const std::vector< IndividualP > &)=0
 Select one individual from a set. More...
 

Protected Attributes

RandomizerP randomizer_
 
- Protected Attributes inherited from SelectionOperator
StateP state_
 

Detailed Description

Random individual selection operator.

Definition at line 11 of file SelRandomOp.h.

Member Function Documentation

◆ initialize()

bool SelRandomOp::initialize ( StateP  )
virtual

Selection operator initialization. Must be called before individual selection.

Implements SelectionOperator.

Definition at line 5 of file SelRandomOp.cpp.

◆ select()

IndividualP SelRandomOp::select ( const std::vector< IndividualP > &  )
virtual

Select one individual from a set.

Implements SelectionOperator.

Definition at line 13 of file SelRandomOp.cpp.

Member Data Documentation

◆ randomizer_

RandomizerP SelRandomOp::randomizer_
protected

Definition at line 14 of file SelRandomOp.h.


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