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 82 void Print( std::ostream & out,
Int_t utilIndex = -1 );
Random number generator class based on M.
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...
Double_t GetFitness() const
Int_t GetPopulationSize() const
void MakeChildren()
does what the name says,...
tomato 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 std::vector< TMVA::GeneticRange * > & GetRanges() const
void AddPopulation(GeneticPopulation *strangers)
add another population (strangers) to the one of this GeneticPopulation
#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
GeneticPopulation(const std::vector< TMVA::Interval *> &ranges, Int_t size, UInt_t seed=0)
Constructor.
void TrimPopulation()
trim the population to the predefined size
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...
Abstract ClassifierFactory template that handles arbitrary types.
Int_t fPopulationSizeLimit
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...
const std::vector< TMVA::GeneticGenes > & GetGenePool() const