|
SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
|
#include <GA/Binary.h>

Public Member Functions | |
| CBinary () | |
| CBinary (int n) | |
| CBinary (int n, int preci) | |
| virtual | ~CBinary () |
| CBinary (const CBinary &B) | |
| CBinary | operator= (const CBinary &B) |
| CBinary | operator+ (const CBinary &B) |
| CBinary | extract (int spoint, int epoint) |
| double | decode (double minrange) |
| int & | operator[] (unsigned int i) |
| void | show () |
| void | mutate (double mu) |
Public Attributes | |
| int | nDigits = 4 |
| std::vector< int > | Digit |
| int | precision |
| bool | sign = true |
| CBinary::CBinary | ( | ) |
| CBinary::CBinary | ( | int | n | ) |
| CBinary::CBinary | ( | int | n, |
| int | preci | ||
| ) |
|
virtual |
Definition at line 46 of file Binary.cpp.
| CBinary::CBinary | ( | const CBinary & | B | ) |
| double CBinary::decode | ( | double | minrange | ) |
Definition at line 72 of file Binary.cpp.
References Digit, nDigits, and precision.
Referenced by cross(), cross2p(), and CIndividual::mutate().
| CBinary CBinary::extract | ( | int | spoint, |
| int | epoint | ||
| ) |
| void CBinary::mutate | ( | double | mu | ) |
Definition at line 225 of file Binary.cpp.
References Digit, GADistribution::GetRndUniF(), and nDigits.
Referenced by CIndividual::mutate().
Definition at line 105 of file Binary.cpp.
| int & CBinary::operator[] | ( | unsigned int | i | ) |
Definition at line 133 of file Binary.cpp.
References Digit.
| void CBinary::show | ( | ) |
Definition at line 216 of file Binary.cpp.
| std::vector<int> CBinary::Digit |
Definition at line 15 of file Binary.h.
Referenced by CBinary(), CBinary(), CBinary(), CBinary(), code(), decode(), extract(), mutate(), operator+(), operator=(), operator[](), and show().
| int CBinary::nDigits = 4 |
| int CBinary::precision |
| bool CBinary::sign = true |