English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Sampler: URANIE::Sampler::THaltonSequence Class Reference
Uranie / Sampler v4.9.0
/* @license-end */
URANIE::Sampler::THaltonSequence Class Reference

Description of the class THaltonSequence. More...

#include <THaltonSequence.h>

Inheritance diagram for URANIE::Sampler::THaltonSequence:
Collaboration diagram for URANIE::Sampler::THaltonSequence:

Public Member Functions

Constructor and Destructor

The first n prime numbers for the base

 THaltonSequence (ULong_t ndim)
 Default constructor.
 
virtual ~THaltonSequence ()
 Default destructor.
 
void FirstPrimes (const ULong_t n)
 
Abstract method
void setInstance (const ULong_t n)
 
void init ()
 
Printing Log
virtual void printLog (Option_t *option="")
 
- Public Member Functions inherited from URANIE::Sampler::TSequence
 TSequence ()
 Default constructor.
 
 TSequence (ULong_t ndim)
 Default constructor.
 
virtual ~TSequence ()
 Default destructor.
 
Double_t operator[] (const ULong_t) const
 
Double_t getComponent (const ULong_t) const
 
void setLog ()
 
void unsetLog ()
 Sets the static variable _blog at kFALSE.
 

Private Attributes

Double_t * Radical
 
Int_t * Base
 Radical.
 

Additional Inherited Members

- Public Attributes inherited from URANIE::Sampler::TSequence
ULong_t _nDim
 The size of the sequence.
 
Double_t * _dValue
 
- Static Public Attributes inherited from URANIE::Sampler::TSequence
static Int_t _seqCounter
 The counter of sequence.
 
static Bool_t _blog
 Log Printing.
 

Detailed Description

Description of the class THaltonSequence.

Description

(source Numerical Recipes - Chapter 7-7 page 309)

In one dimension, the jth number $ H_j$ in the sequence is obtained by the followings steps :
  • Write $ j$ as a number in base $ b$, where $ b$ is some prime. For example, $ j=17$ in base $ b=3$ is 122.
  • Reverse the digits and put a radix point (i.e. a decimal point base $ b$) in front of the sequence. In our example, we get 0.221 base 3. It is the result $ H_j$.
To get a sequence of n-tuples in n-space, you make each component a Halton sequence with a different prime base $ b$. Typically, we can use the n primes.

Implementation

The code original is in the library seq_beta_04.21.01 de Duchemol and co

Constructor & Destructor Documentation

◆ THaltonSequence()

URANIE::Sampler::THaltonSequence::THaltonSequence ( ULong_t  ndim)

Default constructor.

Referenced by ClassImp().

◆ ~THaltonSequence()

virtual URANIE::Sampler::THaltonSequence::~THaltonSequence ( )
virtual

Default destructor.

Referenced by ClassImp().

Member Function Documentation

◆ FirstPrimes()

void URANIE::Sampler::THaltonSequence::FirstPrimes ( const ULong_t  n)

Referenced by ClassImp().

◆ init()

void URANIE::Sampler::THaltonSequence::init ( )
virtual

Implements URANIE::Sampler::TSequence.

Referenced by ClassImp().

◆ printLog()

virtual void URANIE::Sampler::THaltonSequence::printLog ( Option_t *  option = "")
virtual

Reimplemented from URANIE::Sampler::TSequence.

Referenced by ClassImp().

◆ setInstance()

void URANIE::Sampler::THaltonSequence::setInstance ( const ULong_t  n)
virtual

Implements URANIE::Sampler::TSequence.

Referenced by ClassImp().

Member Data Documentation

◆ Base

Int_t* URANIE::Sampler::THaltonSequence::Base
private

Radical.

Referenced by ClassImp().

◆ Radical

Double_t* URANIE::Sampler::THaltonSequence::Radical
private

Referenced by ClassImp().