OpendTect  7.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Stats::NormalRandGen Class Reference

Normal (gaussian) Random Generator Not thread-safe to preserve performance. In multi-threaded context, use one generator per thread. More...

Inheritance diagram for Stats::NormalRandGen:
[legend]

Public Member Functions

 NormalRandGen ()
 
double get () const override
 
double get (double expect, double stdev) const
 
float get (float expect, float stdev) const
 
bool init (int seed) override
 Not for production. More...
 
- Public Member Functions inherited from Stats::RandomGenerator
virtual ~RandomGenerator ()
 

Private Member Functions

 mOD_DisableCopy (NormalRandGen)
 

Private Attributes

std::mt19937_64 gen64_
 
std::random_device rd_
 
Threads::Atomic< int > seedval_ = mUdf(int)
 

Detailed Description

Normal (gaussian) Random Generator Not thread-safe to preserve performance. In multi-threaded context, use one generator per thread.

<>

Constructor & Destructor Documentation

◆ NormalRandGen()

Stats::NormalRandGen::NormalRandGen ( )

Member Function Documentation

◆ get() [1/3]

double Stats::NormalRandGen::get ( ) const
overridevirtual

◆ get() [2/3]

double Stats::NormalRandGen::get ( double  expect,
double  stdev 
) const

◆ get() [3/3]

float Stats::NormalRandGen::get ( float  expect,
float  stdev 
) const

◆ init()

bool Stats::NormalRandGen::init ( int  seed)
overridevirtual

Not for production.

Reimplemented from Stats::RandomGenerator.

◆ mOD_DisableCopy()

Stats::NormalRandGen::mOD_DisableCopy ( NormalRandGen  )
private

Member Data Documentation

◆ gen64_

std::mt19937_64 Stats::NormalRandGen::gen64_
mutableprivate

◆ rd_

std::random_device Stats::NormalRandGen::rd_
private

◆ seedval_

Threads::Atomic<int> Stats::NormalRandGen::seedval_ = mUdf(int)
private

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024