|
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) |
| Digit i; throws std::out_of_range if i >= Digit.size(). | |
| void | show () |
| void | mutate (double mu) |
Public Attributes | |
| int | nDigits = 4 |
| std::vector< int > | Digit |
| int | precision = 3 |
| bool | sign = true |
| CBinary::CBinary | ( | ) |
Definition at line 24 of file Binary.cpp.
References Digit, nDigits, precision, and sign.
Referenced by CBinary(), extract(), operator+(), and operator=().
| CBinary::CBinary | ( | int | n | ) |
| CBinary::CBinary | ( | int | n, |
| int | preci ) |
|
virtual |
Definition at line 51 of file Binary.cpp.
| CBinary::CBinary | ( | const CBinary & | B | ) |
| double CBinary::decode | ( | double | minrange | ) |
Definition at line 77 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 230 of file Binary.cpp.
References Digit, GADistribution::GetRndUniF(), and nDigits.
Referenced by CIndividual::mutate().
Definition at line 110 of file Binary.cpp.
| int & CBinary::operator[] | ( | unsigned int | i | ) |
Digit i; throws std::out_of_range if i >= Digit.size().
Definition at line 138 of file Binary.cpp.
References Digit.
| void CBinary::show | ( | ) |
Definition at line 221 of file Binary.cpp.
| std::vector<int> CBinary::Digit |
Definition at line 18 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 = 3 |
| bool CBinary::sign = true |