A++ » TMVA » TMVA::GeneticPopulation

class TMVA::GeneticPopulation


GeneticPopulation

Population definition for genetic algorithm


Function Members (Methods)

public:
virtual~GeneticPopulation()
voidAddPopulation(TMVA::GeneticPopulation* strangers)
voidAddPopulation(TMVA::GeneticPopulation& strangers)
static TClass*Class()
TMVA::GeneticPopulationGeneticPopulation(const TMVA::GeneticPopulation&)
TMVA::GeneticPopulationGeneticPopulation(const vector<TMVA::Interval*>& ranges, Int_t size, UInt_t seed = 0)
Double_tGetFitness() const
const vector<TMVA::GeneticGenes>&GetGenePool() const
vector<TMVA::GeneticGenes>&GetGenePool()
TMVA::GeneticGenes*GetGenes(Int_t index)
Int_tGetPopulationSize() const
const vector<TMVA::GeneticRange*>&GetRanges() const
vector<TMVA::GeneticRange*>&GetRanges()
voidGiveHint(vector<Double_t>& hint, Double_t fitness = 0)
virtual TClass*IsA() const
voidMakeChildren()
voidMakeCopies(int number)
voidMutate(Double_t probability = 20, Int_t startIndex = 0, Bool_t near = kFALSE, Double_t spread = 0.10000000000000001, Bool_t mirror = kFALSE)
voidNextGeneration()
TMVA::GeneticPopulation&operator=(const TMVA::GeneticPopulation&)
voidPrint(Int_t untilIndex = -1)
voidPrint(ostream& out, Int_t utilIndex = -1)
voidSetRandomSeed(UInt_t seed = 0)
virtual voidShowMembers(TMemberInspector& insp) const
voidSort()
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
voidTrimPopulation()
vector<Double_t>VariableDistribution(Int_t varNumber)
TH1F*VariableDistribution(Int_t varNumber, Int_t bins, Int_t min, Int_t max)
private:
TMVA::MsgLogger&Log() const
TMVA::GeneticGenesMakeSex(TMVA::GeneticGenes male, TMVA::GeneticGenes female)

Data Members

private:
vector<TMVA::GeneticGenes>fGenePoolthe "genePool" where the individuals of the current generation are stored
TMVA::MsgLogger*fLoggermessage logger
Int_tfPopulationSizeLimit
TRandom3*fRandomGeneratorrandom Generator for this population
vector<TMVA::GeneticRange*>fRangescontains the ranges inbetween the values of the coefficients have to be

Class Charts

Inheritance Chart:
TMVA::GeneticPopulation

Function documentation

GeneticPopulation(const vector<TMVA::Interval*>& ranges, Int_t size, UInt_t seed = 0)
virtual ~GeneticPopulation()
void SetRandomSeed(UInt_t seed = 0)
void MakeChildren()
void Mutate(Double_t probability = 20, Int_t startIndex = 0, Bool_t near = kFALSE, Double_t spread = 0.10000000000000001, Bool_t mirror = kFALSE)
Int_t GetPopulationSize() const
{ return fGenePool.size(); }
Double_t GetFitness() const
{ return fGenePool.size()>0? fGenePool[0].GetFitness() : 0; }
const std::vector<TMVA::GeneticGenes>& GetGenePool() const
{ return fGenePool; }
const std::vector<TMVA::GeneticRange*>& GetRanges() const
{ return fRanges; }
std::vector<TMVA::GeneticGenes>& GetGenePool()
{ return fGenePool; }
std::vector<TMVA::GeneticRange*>& GetRanges()
{ return fRanges; }
void Print(Int_t untilIndex = -1)
void Print(ostream& out, Int_t utilIndex = -1)
TH1F* VariableDistribution(Int_t varNumber, Int_t bins, Int_t min, Int_t max)
std::vector< Double_t > VariableDistribution(Int_t varNumber)
void MakeCopies(int number)
 To keep compatibility: These methods might be reimplemented
 or just eliminated later on. They are used by the
 GeneticFitter class.
void NextGeneration()
{}
void AddPopulation( GeneticPopulation *strangers )
void AddPopulation( GeneticPopulation &strangers )
void TrimPopulation()
void GiveHint(vector<Double_t>& hint, Double_t fitness = 0)
void Sort()
GeneticGenes MakeSex(TMVA::GeneticGenes male, TMVA::GeneticGenes female)