#include <GrayCodeChromosome.h>
Inheritance diagram for gal::GrayCodeChromosome< T >:
Public Member Functions | |
| GrayCodeChromosome (int length) | |
| Constructs a GrayCodeChromosome and initialises it randomly. | |
| std::list< char > const | getInterpretedBitstring () |
| Returns the interpreted binary bitstring that corresponds to the raw, Gray encoded bitstring. | |
Before getting the actual value the raw bitstring is first Gray-decoded. This is mainly useful when representing scalar numbers. Integer numbers that differ by one, always differ by just one flipped bit. Note that this class still needs to be specialised.
|
||||||||||
|
Constructs a GrayCodeChromosome and initialises it randomly.
|
|
|||||||||
|
Returns the interpreted binary bitstring that corresponds to the raw, Gray encoded bitstring.
Reimplemented from gal::Chromosome< T >. |
1.3.9.1