(C++)  1.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::evolution::RouletteSampler< T > Class Template Reference

#include <RouletteSampler.hh>

Public Member Functions

 RouletteSampler (const std::vector< std::unique_ptr< T >> &individuals)
 
void Initialize (const std::vector< std::unique_ptr< T >> &individuals)
 
std::vector< T * > SampleMany (size_t count, std::mt19937_64 &randGen)
 
std::vector< size_t > SampleManyIndices (size_t count, std::mt19937_64 &randGen)
 
T * Sample (std::mt19937_64 &randGen)
 
size_t SampleIndex (std::mt19937_64 &randGen)
 
size_t SampleIndexWithReturn (std::mt19937_64 &randGen) const
 

Detailed Description

template<class T>
class grail::evolution::RouletteSampler< T >

The type T must have a public method "float getFitness()"


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