library: libTMVA
#include "GeneticRange.h"

TMVA::GeneticRange


class description - header file - source file - inheritance tree (.pdf)

class TMVA::GeneticRange

Inheritance Chart:
TMVA::GeneticRange
    private:
Double_t ReMap(Double_t val) Double_t ReMapMirror(Double_t val) public:
GeneticRange(TRandom* rnd, Double_t f, Double_t t) GeneticRange(const TMVA::GeneticRange&) virtual ~GeneticRange() static TClass* Class() Double_t GetFrom() Double_t GetTo() Double_t GetTotalLength() virtual TClass* IsA() const TMVA::GeneticRange& operator=(const TMVA::GeneticRange&) Double_t Random(Bool_t near = kFALSE, Double_t value = 0, Double_t spread = 0.1, Bool_t mirror = kFALSE) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
Double_t fFrom Double_t fTo the constraints of the coefficient Double_t fTotalLength the distance between the lower and upper constraints TRandom* fRandomGenerator the randomGenerator for calculating the new values

Class Description

_______________________________________________________________________

 Range definition for genetic algorithm

_______________________________________________________________________
GeneticRange( TRandom *rnd, Double_t f, Double_t t )
 defines the "f" (from) and "t" (to) of the coefficient
 and takes a randomgenerator

Double_t Random( Bool_t near, Double_t value, Double_t spread, Bool_t mirror )
 creates a new random value for the coefficient
 Parameters:
        bool 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 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.

Double_t ReMap( Double_t val )
 remapping the value to the allowed space

Double_t ReMapMirror( Double_t val )
 remapping the value to the allowed space by reflecting on the
 boundaries
~GeneticRange()
 destructor
GeneticRange( TRandom *rnd, Double_t f, Double_t t )
Double_t GetFrom()
Double_t GetTo()
Double_t GetTotalLength()

Author: Peter Speckmayer
Last update: root/tmva $Id: GeneticRange.cxx,v 1.4 2006/05/31 14:01:33 rdm Exp $
Copyright (c) 2005: *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.