#include <BinaryChromosome.h>
|
static void | initializeRandom (Chromosome &chromosome) |
|
static void | mutateFlip (Chromosome &chromosome, float probability) |
|
static void | crossoverOnePoint (const Chromosome &parent1, const Chromosome &parent2, Chromosome *offspring1, Chromosome *offspring2) |
|
static void | crossoverTwoPoint (const Chromosome &parent1, const Chromosome &parent2, Chromosome *offspring1, Chromosome *offspring2) |
|
static void | _codeCrossoverOnePoint (uint8_t *offspringCode, const uint8_t *parentCode1, const uint8_t *parentCode2, unsigned int point, unsigned int codeSize) |
|
static void | _codeCrossoverTwoPoint (uint8_t *offspringCode, const uint8_t *parentCode1, const uint8_t *parentCode2, unsigned int point1, unsigned int point2, unsigned int codeSize) |
|
BinaryChromosome::~BinaryChromosome |
( |
| ) |
|
|
virtual |
void BinaryChromosome::_codeCrossoverOnePoint |
( |
uint8_t * |
offspringCode, |
|
|
const uint8_t * |
parentCode1, |
|
|
const uint8_t * |
parentCode2, |
|
|
unsigned int |
point, |
|
|
unsigned int |
codeSize |
|
) |
| |
|
static |
void BinaryChromosome::_codeCrossoverTwoPoint |
( |
uint8_t * |
offspringCode, |
|
|
const uint8_t * |
parentCode1, |
|
|
const uint8_t * |
parentCode2, |
|
|
unsigned int |
point1, |
|
|
unsigned int |
point2, |
|
|
unsigned int |
codeSize |
|
) |
| |
|
static |
void BinaryChromosome::copyFrom |
( |
const Chromosome & |
c | ) |
|
|
virtual |
bool BinaryChromosome::equals |
( |
const Chromosome & |
c | ) |
const |
|
virtual |
uint64_t BinaryChromosome::getGeneValue |
( |
int |
gene | ) |
const |
Returns the value of gene #gene# as a 64-bit integer.
void BinaryChromosome::init |
( |
| ) |
|
|
virtual |
void BinaryChromosome::initializeRandom |
( |
Chromosome & |
chromosome | ) |
|
|
static |
void BinaryChromosome::mutate |
( |
float |
p | ) |
|
|
virtual |
void BinaryChromosome::mutateFlip |
( |
Chromosome & |
chromosome, |
|
|
float |
probability |
|
) |
| |
|
static |
void BinaryChromosome::setGeneValue |
( |
int |
gene, |
|
|
uint64_t |
value |
|
) |
| |
Sets the value of gene #gene# to #value# (max. 64-bit).
uint8_t* BinaryChromosome::code |
The documentation for this class was generated from the following files: