#include <IntChromosome.h>
Inheritance diagram for gal::IntChromosome:
Public Member Functions | |
| IntChromosome (int length) | |
| Constructs a new IntChromosome and initialises it randomly. | |
| int const | getValue () |
| Returns the decimal value that the bitstring represents. | |
| std::string const | getValueText () |
| Returns a string representation of the decimal value. | |
Bitstring is interpreted as a reversed binary number.
|
|
Constructs a new IntChromosome and initialises it randomly. Do not set the length too large (<=32 generally)
|
|
|
Returns the decimal value that the bitstring represents.
Reimplemented from gal::Chromosome< int >. |
|
|
Returns a string representation of the decimal value.
Reimplemented from gal::Chromosome< int >. |
1.3.9.1