BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Definition at line 49 of file GeneticPopulation.h.
Public Member Functions | |
GeneticPopulation (const std::vector< TMVA::Interval * > &ranges, Int_t size, UInt_t seed=0) | |
virtual | ~GeneticPopulation () |
void | AddPopulation (GeneticPopulation &strangers) |
void | AddPopulation (GeneticPopulation *strangers) |
Double_t | GetFitness () const |
std::vector< TMVA::GeneticGenes > & | GetGenePool () |
const std::vector< TMVA::GeneticGenes > & | GetGenePool () const |
GeneticGenes * | GetGenes (Int_t index) |
Int_t | GetPopulationSize () const |
std::vector< TMVA::GeneticRange * > & | GetRanges () |
const std::vector< TMVA::GeneticRange * > & | GetRanges () const |
void | GiveHint (std::vector< Double_t > &hint, Double_t fitness=0) |
void | MakeChildren () |
void | MakeCopies (int number) |
void | Mutate (Double_t probability=20, Int_t startIndex=0, Bool_t near=kFALSE, Double_t spread=0.1, Bool_t mirror=kFALSE) |
void | NextGeneration () |
void | Print (Int_t untilIndex=-1) |
void | Print (std::ostream &out, Int_t utilIndex=-1) |
void | SetRandomSeed (UInt_t seed=0) |
void | Sort () |
void | TrimPopulation () |
std::vector< Double_t > | VariableDistribution (Int_t varNumber) |
Private Member Functions | |
ClassDef (GeneticPopulation, 0) | |
MsgLogger & | Log () const |
GeneticGenes | MakeSex (GeneticGenes male, GeneticGenes female) |
Private Attributes | |
std::vector< TMVA::GeneticGenes > | fGenePool |
MsgLogger * | fLogger |
Int_t | fPopulationSizeLimit |
TRandom3 * | fRandomGenerator |
std::vector< TMVA::GeneticRange * > | fRanges |
TMVA::GeneticPopulation::GeneticPopulation | ( | const std::vector< TMVA::Interval * > & | ranges, |
Int_t | size, | ||
UInt_t | seed = 0 |
||
) |
|
virtual |
void TMVA::GeneticPopulation::AddPopulation | ( | GeneticPopulation & | strangers | ) |
void TMVA::GeneticPopulation::AddPopulation | ( | GeneticPopulation * | strangers | ) |
|
private |
|
inline |
Definition at line 64 of file GeneticPopulation.h.
References fGenePool.
|
inline |
|
inline |
GeneticGenes* TMVA::GeneticPopulation::GetGenes | ( | Int_t | index | ) |
|
inline |
|
inline |
Definition at line 70 of file GeneticPopulation.h.
References fRanges.
|
inline |
|
inlineprivate |
void TMVA::GeneticPopulation::MakeChildren | ( | ) |
void TMVA::GeneticPopulation::MakeCopies | ( | int | number | ) |
|
private |
void TMVA::GeneticPopulation::Mutate | ( | Double_t | probability = 20 , |
Int_t | startIndex = 0 , |
||
Bool_t | near = kFALSE , |
||
Double_t | spread = 0.1 , |
||
Bool_t | mirror = kFALSE |
||
) |
|
inline |
Definition at line 83 of file GeneticPopulation.h.
void TMVA::GeneticPopulation::Print | ( | Int_t | untilIndex = -1 | ) |
void TMVA::GeneticPopulation::Print | ( | std::ostream & | out, |
Int_t | utilIndex = -1 |
||
) |
void TMVA::GeneticPopulation::SetRandomSeed | ( | UInt_t | seed = 0 | ) |
void TMVA::GeneticPopulation::Sort | ( | ) |
void TMVA::GeneticPopulation::TrimPopulation | ( | ) |
|
private |
Definition at line 95 of file GeneticPopulation.h.
Referenced by GetFitness(), GetGenePool(), and GetPopulationSize().
|
mutableprivate |
Definition at line 100 of file GeneticPopulation.h.
Referenced by Log().
|
private |
Definition at line 103 of file GeneticPopulation.h.
|
private |
Definition at line 98 of file GeneticPopulation.h.
|
private |
Definition at line 96 of file GeneticPopulation.h.
Referenced by GetRanges().