ROOT  6.06/09
Reference Guide
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TMVA::GeneticRange Class Reference

Definition at line 44 of file GeneticRange.h.

Public Member Functions

 GeneticRange (TRandom3 *rnd, Interval *interval)
 
virtual ~GeneticRange ()
 destructor More...
 
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...
 
Double_t GetFrom ()
 
Double_t GetTo ()
 
Double_t GetTotalLength ()
 

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
 
Double_t fTo
 
Int_t fNbins
 
IntervalfInterval
 
Double_t fTotalLength
 
TRandom3fRandomGenerator
 

#include <TMVA/GeneticRange.h>

+ Collaboration diagram for TMVA::GeneticRange:

Constructor & Destructor Documentation

TMVA::GeneticRange::GeneticRange ( TRandom3 rnd,
Interval interval 
)
TMVA::GeneticRange::~GeneticRange ( )
virtual

destructor

Definition at line 120 of file GeneticRange.cxx.

Member Function Documentation

Double_t TMVA::GeneticRange::GetFrom ( )
inline

Definition at line 54 of file GeneticRange.h.

Double_t TMVA::GeneticRange::GetTo ( )
inline

Definition at line 55 of file GeneticRange.h.

Double_t TMVA::GeneticRange::GetTotalLength ( )
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 76 of file GeneticRange.cxx.

Double_t TMVA::GeneticRange::RandomDiscrete ( )

creates a new random value for the coefficient; returns a discrete value

Definition at line 59 of file GeneticRange.cxx.

Double_t TMVA::GeneticRange::ReMap ( Double_t  val)
private

remapping the value to the allowed space

Definition at line 97 of file GeneticRange.cxx.

Double_t TMVA::GeneticRange::ReMapMirror ( Double_t  val)
private

remapping the value to the allowed space by reflecting on the boundaries

Definition at line 109 of file GeneticRange.cxx.

Member Data Documentation

Double_t TMVA::GeneticRange::fFrom
private

Definition at line 60 of file GeneticRange.h.

Referenced by GetFrom().

Interval* TMVA::GeneticRange::fInterval
private

Definition at line 63 of file GeneticRange.h.

Referenced by RandomDiscrete().

Int_t TMVA::GeneticRange::fNbins
private

Definition at line 61 of file GeneticRange.h.

Referenced by RandomDiscrete().

TRandom3* TMVA::GeneticRange::fRandomGenerator
private

Definition at line 73 of file GeneticRange.h.

Referenced by RandomDiscrete().

Double_t TMVA::GeneticRange::fTo
private

Definition at line 60 of file GeneticRange.h.

Referenced by GetTo().

Double_t TMVA::GeneticRange::fTotalLength
private

Definition at line 64 of file GeneticRange.h.

Referenced by GetTotalLength().


The documentation for this class was generated from the following files: