Public Member Functions | |
Gene (double i_min, double i_max, double i_res, double i_x) | |
The number can vary from min to max in increments of res. | |
Gene () | |
double | getDiversity (const Gene &o) const |
void | print (FILE *fp) |
double | getX () const |
double | getMin () const |
double | getMax () const |
double | getRes () const |
bool | mutate (double sigma, code::Random &rnd) |
void | randomize (code::Random &rnd) |
Static Public Member Functions | |
static double | getSigmaForProb (double prob) |
w2img::Gene::Gene | ( | double | i_min, | |
double | i_max, | |||
double | i_res, | |||
double | i_x | |||
) | [inline] |
The number can vary from min to max in increments of res.
w2img::Gene::Gene | ( | ) | [inline] |
double w2img::Gene::getDiversity | ( | const Gene & | o | ) | const |
double w2img::Gene::getMax | ( | ) | const [inline] |
double w2img::Gene::getMin | ( | ) | const [inline] |
double w2img::Gene::getRes | ( | ) | const [inline] |
static double w2img::Gene::getSigmaForProb | ( | double | prob | ) | [static] |
double w2img::Gene::getX | ( | ) | const [inline] |
bool w2img::Gene::mutate | ( | double | sigma, | |
code::Random & | rnd | |||
) |
void w2img::Gene::print | ( | FILE * | fp | ) |
void w2img::Gene::randomize | ( | code::Random & | rnd | ) |