Range definition for genetic algorithm.
Definition at line 42 of file GeneticRange.h.
#include <TMVA/GeneticRange.h>
◆ GeneticRange()
defines the "f" (from) and "t" (to) of the coefficient and takes a randomgenerator
Definition at line 45 of file GeneticRange.cxx.
◆ ~GeneticRange()
TMVA::GeneticRange::~GeneticRange |
( |
| ) |
|
|
virtual |
◆ GetFrom()
Double_t TMVA::GeneticRange::GetFrom |
( |
| ) |
|
|
inline |
◆ GetTo()
◆ GetTotalLength()
Double_t TMVA::GeneticRange::GetTotalLength |
( |
| ) |
|
|
inline |
◆ Random()
creates a new random value for the coefficient Parameters:
- Bool_t near : takes a random value near the current value
- double value : this is the current value
- double spread : the sigma of the gaussian which is taken to calculate the new value
- Bool_t mirror : if the new value would be outside of the range, mirror = false maps the value between the constraints by periodic boundary conditions. With mirror = true, the value gets "reflected" on the boundaries.
Definition at line 76 of file GeneticRange.cxx.
◆ RandomDiscrete()
Double_t TMVA::GeneticRange::RandomDiscrete |
( |
| ) |
|
creates a new random value for the coefficient; returns a discrete value
Definition at line 60 of file GeneticRange.cxx.
◆ ReMap()
◆ ReMapMirror()
remapping the value to the allowed space by reflecting on the boundaries
Definition at line 107 of file GeneticRange.cxx.
◆ fFrom
◆ fInterval
◆ fNbins
Int_t TMVA::GeneticRange::fNbins |
|
private |
◆ fRandomGenerator
TRandom3* TMVA::GeneticRange::fRandomGenerator |
|
private |
◆ fTo
◆ fTotalLength
Double_t TMVA::GeneticRange::fTotalLength |
|
private |
The documentation for this class was generated from the following files: