SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
Loading...
Searching...
No Matches
Binary.h File Reference
#include <vector>
Include dependency graph for Binary.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CBinary

Functions

CBinary code (double x, double minrange, double maxrange, int precision)
void cross (CBinary &B1, CBinary &B2, int p)
void cross (CBinary &B1, CBinary &B2, std::vector< int > p)
void cross2p (CBinary &B1, CBinary &B2, int p1, int p2)

Function Documentation

◆ code()

CBinary code ( double x,
double minrange,
double maxrange,
int precision )

Definition at line 91 of file Binary.cpp.

References CBinary::Digit, log, CBinary::nDigits, CBinary::precision, and x.

Referenced by cross(), cross2p(), and CIndividual::mutate().

◆ cross() [1/2]

void cross ( CBinary & B1,
CBinary & B2,
int p )

Definition at line 147 of file Binary.cpp.

References CBinary::nDigits.

Referenced by CGA< T >::crossover().

◆ cross() [2/2]

void cross ( CBinary & B1,
CBinary & B2,
std::vector< int > p )

Definition at line 167 of file Binary.cpp.

References CBinary::nDigits.

◆ cross2p()

void cross2p ( CBinary & B1,
CBinary & B2,
int p1,
int p2 )

Definition at line 195 of file Binary.cpp.

References CBinary::nDigits.

Referenced by CGA< T >::crossover().