Evocosm - A C++ Framework for Evolutionary Computing

Main Index

Created by Scott Robert Ladd at Coyote Gulch Productions.


Public Member Functions | List of all members
libevocosm::null_scaler< OrganismType > Class Template Reference

A do-nothing scaler. More...

#include <scaler.h>

Inheritance diagram for libevocosm::null_scaler< OrganismType >:
libevocosm::scaler< OrganismType > libevocosm::globals

Public Member Functions

virtual void scale_fitness (vector< OrganismType > &a_population)
 Do-nothing scaling function. More...
 
- Public Member Functions inherited from libevocosm::scaler< OrganismType >
virtual ~scaler ()
 Virtual destructor. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from libevocosm::globals
static size_t rand_index (size_t n)
 Static function to allow use of g_random function pointer in random_shuffle.
 
static void set_seed (uint32_t a_seed)
 Set the seed for the random number generator.
 
static uint32_t get_seed ()
 Set the seed for the random number generator.
 
static std::string version ()
 Get version number.
 
- Static Protected Attributes inherited from libevocosm::globals
static prng g_random
 A shared random number generator.
 
static std::string g_version
 Version number.
 

Detailed Description

template<class OrganismType>
class libevocosm::null_scaler< OrganismType >

The null_scaler doesn't scale anything; it's just a placeholder used in evolutionary algorithms that do not use fitness scaling.

Parameters
OrganismType- The type of organism

Member Function Documentation

template<class OrganismType >
virtual void libevocosm::null_scaler< OrganismType >::scale_fitness ( vector< OrganismType > &  a_population)
inlinevirtual

Has no effect on the target population.

Parameters
a_population- A population of organisms

Implements libevocosm::scaler< OrganismType >.


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

© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.