ROOT 6.08/07 Reference Guide |
Definition at line 44 of file GeneticRange.h.
Public Member Functions | |
GeneticRange (TRandom3 *rnd, Interval *interval) | |
defines the "f" (from) and "t" (to) of the coefficient and takes a randomgenerator More... | |
virtual | ~GeneticRange () |
destructor More... | |
Double_t | GetFrom () |
Double_t | GetTo () |
Double_t | GetTotalLength () |
Double_t | Random (Bool_t near=kFALSE, Double_t value=0, Double_t spread=0.1, Bool_t mirror=kFALSE) |
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. More... | |
Double_t | RandomDiscrete () |
creates a new random value for the coefficient; returns a discrete value More... | |
Private Member Functions | |
Double_t | ReMap (Double_t val) |
remapping the value to the allowed space More... | |
Double_t | ReMapMirror (Double_t val) |
remapping the value to the allowed space by reflecting on the boundaries More... | |
Private Attributes | |
Double_t | fFrom |
Interval * | fInterval |
Int_t | fNbins |
TRandom3 * | fRandomGenerator |
Double_t | fTo |
Double_t | fTotalLength |
#include <TMVA/GeneticRange.h>
defines the "f" (from) and "t" (to) of the coefficient and takes a randomgenerator
Definition at line 44 of file GeneticRange.cxx.
|
virtual |
destructor
Definition at line 121 of file GeneticRange.cxx.
|
inline |
Definition at line 54 of file GeneticRange.h.
|
inline |
Definition at line 55 of file GeneticRange.h.
|
inline |
Definition at line 56 of file GeneticRange.h.
Double_t TMVA::GeneticRange::Random | ( | Bool_t | near = kFALSE , |
Double_t | value = 0 , |
||
Double_t | spread = 0.1 , |
||
Bool_t | mirror = kFALSE |
||
) |
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 77 of file GeneticRange.cxx.
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.
remapping the value to the allowed space
Definition at line 98 of file GeneticRange.cxx.
remapping the value to the allowed space by reflecting on the boundaries
Definition at line 110 of file GeneticRange.cxx.
|
private |
Definition at line 60 of file GeneticRange.h.
|
private |
Definition at line 63 of file GeneticRange.h.
|
private |
Definition at line 61 of file GeneticRange.h.
|
private |
Definition at line 73 of file GeneticRange.h.
|
private |
Definition at line 60 of file GeneticRange.h.
|
private |
Definition at line 64 of file GeneticRange.h.