#include <GeneBit.h>
Public Member Functions | |
| GeneBit (glotzmath::RandomNumberGenerator *RG) | |
| GeneBit (const GeneBit &RHS) | |
| GeneBit (char *Cus_Bit, const unsigned int &Size, const unsigned int &Index, glotzmath::RandomNumberGenerator *RG) | |
| GeneBit (const unsigned char &Bit, glotzmath::RandomNumberGenerator *RG) | |
| GeneBit (const unsigned int &Bit, glotzmath::RandomNumberGenerator *RG) | |
| GeneBit (const unsigned int &Bit, const unsigned int &Size, glotzmath::RandomNumberGenerator *RG) | |
| GeneBit (const float &Bit, glotzmath::RandomNumberGenerator *RG) | |
| GeneBit (const float &Bit, const float &Min, const float &Max, const float &Delta, glotzmath::RandomNumberGenerator *RG) | |
| GeneBit (const double &Bit, glotzmath::RandomNumberGenerator *RG) | |
| GeneBit (const double &Bit, const double &Min, const double &Max, const double &Delta, glotzmath::RandomNumberGenerator *RG) | |
| GeneBit (std::ifstream &Input, glotzmath::RandomNumberGenerator *RG) | |
| bool | SetGeneValue (const double &RandNum) |
| unsigned long | GetSeed () const |
| bool | Mutate () |
| char | GetC_Bit () const |
| double | GetD_Bit () const |
| float | GetF_Bit () const |
| unsigned int | GetI_Bit () const |
| unsigned int | GetI_Bit_Size () const |
| char | GetGeneBitType () const |
| void | GetCustomBit (char *TmpCustomBit, const unsigned int &Size) const |
| unsigned int | GetCustomBitIndex () const |
| unsigned int | GetCustomBitSize () const |
| char | GetCustomBitValue () const |
| float | GetF_Min () const |
| float | GetF_Max () const |
| float | GetF_Delta () const |
| double | GetD_Min () const |
| double | GetD_Max () const |
| double | GetD_Delta () const |
| bool | Set_Bit (const unsigned char &Bit) |
| bool | Set_Bit (const unsigned int &Bit) |
| bool | Set_IBit_Size (const unsigned int &Size) |
| bool | Set_Bit (const float &Bit) |
| bool | Set_Bit (const double &Bit) |
| bool | SetCustom_Bit_Index (const unsigned int &Index) |
| bool | SetCustom_Bit_Value (const char &Bit) |
| bool | Splice (GeneBit &RHS, const double &PercentToSplice) |
| bool | Splice (GeneBit &RHS) |
| bool | IsGeneBitDivisible () const |
| void | PrintGeneBit () const |
| void | PrintGeneBit_Divisible () const |
| unsigned int | GetEffectiveLength () const |
| glotzmath::RandomNumberGenerator * | GetRandGen () const |
| void | SaveGeneBitToFile (std::ofstream &Output) const |
| unsigned int | GetNumSuccessors () const |
| void | GetSuccessors (Gene **SuccessorGenes, const unsigned int &GeneBitLocation, const unsigned int &NumToCopy, const unsigned int &Offset) const |
| ~GeneBit () | |
Private Member Functions | |
| void | CharToBool8 (const unsigned char &MyInt, bool MyBoolArray[]) const |
| void | Bool8ToChar (const bool MyBoolArray[], unsigned char &MyInt) const |
| void | IntToBool32 (const unsigned int &MyInt, bool MyBoolArray[]) const |
| void | Bool32ToInt (const bool MyBoolArray[], unsigned int &MyInt) const |
| void | FloatToBool32 (const float &MyFloat, bool MyBoolArray[]) const |
| void | Bool32ToFloat (const bool MyBoolArray[], float &MyFloat) const |
| void | DoubleToBool64 (const double &MyDouble, bool MyBoolArray[]) const |
| void | Bool64ToDouble (const bool MyBoolArray[], double &MyDouble) const |
Private Attributes | |
| glotzmath::RandomNumberGenerator * | MyRandGen |
| bool | IsDivisible |
| char | GeneBitType |
| char * | Custom_Bit |
| unsigned int | Custom_Bit_Index |
| unsigned int | Custom_Bit_Size |
| unsigned char | C_Bit |
| unsigned int | I_Bit |
| unsigned int | I_Bit_Size |
| float | F_Bit |
| double | D_Bit |
| float | F_Min |
| float | F_Max |
| float | F_Delta |
| double | D_Min |
| double | D_Max |
| double | D_Delta |
| GeneBit::GeneBit | ( | glotzmath::RandomNumberGenerator * | RG | ) |
| GeneBit::GeneBit | ( | const GeneBit & | RHS | ) |
| GeneBit::GeneBit | ( | char * | Cus_Bit, | |
| const unsigned int & | Size, | |||
| const unsigned int & | Index, | |||
| glotzmath::RandomNumberGenerator * | RG | |||
| ) |
| GeneBit::GeneBit | ( | const unsigned char & | Bit, | |
| glotzmath::RandomNumberGenerator * | RG | |||
| ) |
| GeneBit::GeneBit | ( | const unsigned int & | Bit, | |
| glotzmath::RandomNumberGenerator * | RG | |||
| ) |
| GeneBit::GeneBit | ( | const unsigned int & | Bit, | |
| const unsigned int & | Size, | |||
| glotzmath::RandomNumberGenerator * | RG | |||
| ) |
| GeneBit::GeneBit | ( | const float & | Bit, | |
| glotzmath::RandomNumberGenerator * | RG | |||
| ) |
| GeneBit::GeneBit | ( | const float & | Bit, | |
| const float & | Min, | |||
| const float & | Max, | |||
| const float & | Delta, | |||
| glotzmath::RandomNumberGenerator * | RG | |||
| ) |
| GeneBit::GeneBit | ( | const double & | Bit, | |
| glotzmath::RandomNumberGenerator * | RG | |||
| ) |
| GeneBit::GeneBit | ( | const double & | Bit, | |
| const double & | Min, | |||
| const double & | Max, | |||
| const double & | Delta, | |||
| glotzmath::RandomNumberGenerator * | RG | |||
| ) |
| GeneBit::GeneBit | ( | std::ifstream & | Input, | |
| glotzmath::RandomNumberGenerator * | RG | |||
| ) |
| GeneBit::~GeneBit | ( | ) |
| bool GeneBit::SetGeneValue | ( | const double & | RandNum | ) |
| unsigned long GeneBit::GetSeed | ( | ) | const |
| bool GeneBit::Mutate | ( | ) |
| char GeneBit::GetC_Bit | ( | ) | const |
| double GeneBit::GetD_Bit | ( | ) | const |
| float GeneBit::GetF_Bit | ( | ) | const |
| unsigned int GeneBit::GetI_Bit | ( | ) | const |
| unsigned int GeneBit::GetI_Bit_Size | ( | ) | const |
| char GeneBit::GetGeneBitType | ( | ) | const |
| void GeneBit::GetCustomBit | ( | char * | TmpCustomBit, | |
| const unsigned int & | Size | |||
| ) | const |
| unsigned int GeneBit::GetCustomBitIndex | ( | ) | const |
| unsigned int GeneBit::GetCustomBitSize | ( | ) | const |
| char GeneBit::GetCustomBitValue | ( | ) | const |
| float GeneBit::GetF_Min | ( | ) | const |
| float GeneBit::GetF_Max | ( | ) | const |
| float GeneBit::GetF_Delta | ( | ) | const |
| double GeneBit::GetD_Min | ( | ) | const |
| double GeneBit::GetD_Max | ( | ) | const |
| double GeneBit::GetD_Delta | ( | ) | const |
| bool GeneBit::Set_Bit | ( | const unsigned char & | Bit | ) |
| bool GeneBit::Set_Bit | ( | const unsigned int & | Bit | ) |
| bool GeneBit::Set_IBit_Size | ( | const unsigned int & | Size | ) |
| bool GeneBit::Set_Bit | ( | const float & | Bit | ) |
| bool GeneBit::Set_Bit | ( | const double & | Bit | ) |
| bool GeneBit::SetCustom_Bit_Index | ( | const unsigned int & | Index | ) |
| bool GeneBit::SetCustom_Bit_Value | ( | const char & | Bit | ) |
| bool GeneBit::Splice | ( | GeneBit & | RHS, | |
| const double & | PercentToSplice | |||
| ) |
| bool GeneBit::Splice | ( | GeneBit & | RHS | ) |
| bool GeneBit::IsGeneBitDivisible | ( | ) | const |
| void GeneBit::PrintGeneBit | ( | ) | const |
| void GeneBit::PrintGeneBit_Divisible | ( | ) | const |
| unsigned int GeneBit::GetEffectiveLength | ( | ) | const |
| glotzmath::RandomNumberGenerator * GeneBit::GetRandGen | ( | ) | const |
| void GeneBit::SaveGeneBitToFile | ( | std::ofstream & | Output | ) | const |
| unsigned int GeneBit::GetNumSuccessors | ( | ) | const |
| void GeneBit::GetSuccessors | ( | Gene ** | SuccessorGenes, | |
| const unsigned int & | GeneBitLocation, | |||
| const unsigned int & | NumToCopy, | |||
| const unsigned int & | Offset | |||
| ) | const |
| void GeneBit::CharToBool8 | ( | const unsigned char & | MyInt, | |
| bool | MyBoolArray[] | |||
| ) | const [private] |
| void GeneBit::Bool8ToChar | ( | const bool | MyBoolArray[], | |
| unsigned char & | MyInt | |||
| ) | const [private] |
| void GeneBit::IntToBool32 | ( | const unsigned int & | MyInt, | |
| bool | MyBoolArray[] | |||
| ) | const [private] |
| void GeneBit::Bool32ToInt | ( | const bool | MyBoolArray[], | |
| unsigned int & | MyInt | |||
| ) | const [private] |
| void GeneBit::FloatToBool32 | ( | const float & | MyFloat, | |
| bool | MyBoolArray[] | |||
| ) | const [private] |
| void GeneBit::Bool32ToFloat | ( | const bool | MyBoolArray[], | |
| float & | MyFloat | |||
| ) | const [private] |
| void GeneBit::DoubleToBool64 | ( | const double & | MyDouble, | |
| bool | MyBoolArray[] | |||
| ) | const [private] |
| void GeneBit::Bool64ToDouble | ( | const bool | MyBoolArray[], | |
| double & | MyDouble | |||
| ) | const [private] |
bool GeneBit::IsDivisible [private] |
char GeneBit::GeneBitType [private] |
char* GeneBit::Custom_Bit [private] |
unsigned int GeneBit::Custom_Bit_Index [private] |
unsigned int GeneBit::Custom_Bit_Size [private] |
unsigned char GeneBit::C_Bit [private] |
unsigned int GeneBit::I_Bit [private] |
unsigned int GeneBit::I_Bit_Size [private] |
float GeneBit::F_Bit [private] |
double GeneBit::D_Bit [private] |
float GeneBit::F_Min [private] |
float GeneBit::F_Max [private] |
float GeneBit::F_Delta [private] |
double GeneBit::D_Min [private] |
double GeneBit::D_Max [private] |
double GeneBit::D_Delta [private] |
1.5.3