25 #ifndef ROOT_TMVA_GeneticPopulation
26 #define ROOT_TMVA_GeneticPopulation
42 #ifndef ROOT_TMVA_GeneticGenes
45 #ifndef ROOT_TMVA_Interval
48 #ifndef ROOT_TMVA_GeneticRange
Random number generator class based on M.
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
void GiveHint(std::vector< Double_t > &hint, Double_t fitness=0)
add an individual (a set of variables) to the population if there is a set of variables which is know...
void MakeChildren()
does what the name says,...
1-D histogram with a float per channel (see TH1 documentation)}
void MakeCopies(int number)
produces offspring which is are copies of their parents Parameters: int number : the number of the la...
const TKDTreeBinning * bins
const std::vector< TMVA::GeneticGenes > & GetGenePool() const
void AddPopulation(GeneticPopulation *strangers)
add another population (strangers) to the one of this GeneticPopulation
const std::vector< TMVA::GeneticRange * > & GetRanges() const
#define ClassDef(name, id)
void Mutate(Double_t probability=20, Int_t startIndex=0, Bool_t near=kFALSE, Double_t spread=0.1, Bool_t mirror=kFALSE)
mutates the individuals in the genePool Parameters: double probability : gives the probability (in pe...
std::vector< TMVA::GeneticGenes > & GetGenePool()
std::vector< TMVA::GeneticRange * > fRanges
virtual ~GeneticPopulation()
destructor
void TrimPopulation()
trim the population to the predefined size
Int_t GetPopulationSize() const
void SetRandomSeed(UInt_t seed=0)
the random seed of the random generator
std::vector< TMVA::GeneticRange * > & GetRanges()
GeneticGenes * GetGenes(Int_t index)
gives back the "Genes" of the population with the given index.
void Print(Int_t untilIndex=-1)
make a little printout of the individuals up to index "untilIndex" this means, .
std::vector< TMVA::GeneticGenes > fGenePool
void Sort()
sort the genepool according to the fitness of the individuals
GeneticGenes MakeSex(GeneticGenes male, GeneticGenes female)
this function takes two individuals and produces offspring by mixing (recombining) their coefficients...
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
Abstract ClassifierFactory template that handles arbitrary types.
Int_t fPopulationSizeLimit
Double_t GetFitness() const
GeneticPopulation(const std::vector< TMVA::Interval * > &ranges, Int_t size, UInt_t seed=0)
Constructor.
TRandom3 * fRandomGenerator
TH1F * VariableDistribution(Int_t varNumber, Int_t bins, Int_t min, Int_t max)
give back a histogram with the distribution of the coefficients parameters: int bins : number of bins...