ComPWA
Common Partial-Wave-Analysis Framework
ComPWA::StdUniformRealGenerator Class Reference

#include <Random.hpp>

Public Member Functions

 StdUniformRealGenerator (int seed=123456)
 
double operator() () final
 
int getSeed () const final
 
void setSeed (int seed) final
 
- Public Member Functions inherited from ComPWA::UniformRealNumberGenerator
virtual ~UniformRealNumberGenerator ()=default
 

Private Attributes

std::mt19937 MersenneTwisterRandomGenerator
 
std::uniform_real_distribution< double > UniformDistribution
 
int Seed
 

Detailed Description

Definition at line 25 of file Random.hpp.

+ Inheritance diagram for ComPWA::StdUniformRealGenerator:
+ Collaboration diagram for ComPWA::StdUniformRealGenerator:

Constructor & Destructor Documentation

◆ StdUniformRealGenerator()

ComPWA::StdUniformRealGenerator::StdUniformRealGenerator ( int  seed = 123456)

Definition at line 9 of file Random.cpp.

Member Function Documentation

◆ getSeed()

int ComPWA::StdUniformRealGenerator::getSeed ( ) const
finalvirtual

Implements ComPWA::UniformRealNumberGenerator.

Definition at line 17 of file Random.cpp.

◆ operator()()

double ComPWA::StdUniformRealGenerator::operator() ( )
finalvirtual

Implements ComPWA::UniformRealNumberGenerator.

Definition at line 13 of file Random.cpp.

◆ setSeed()

void ComPWA::StdUniformRealGenerator::setSeed ( int  seed)
finalvirtual

Implements ComPWA::UniformRealNumberGenerator.

Definition at line 19 of file Random.cpp.

Member Data Documentation

◆ MersenneTwisterRandomGenerator

std::mt19937 ComPWA::StdUniformRealGenerator::MersenneTwisterRandomGenerator
private

Definition at line 26 of file Random.hpp.

◆ Seed

int ComPWA::StdUniformRealGenerator::Seed
private

Definition at line 28 of file Random.hpp.

◆ UniformDistribution

std::uniform_real_distribution<double> ComPWA::StdUniformRealGenerator::UniformDistribution
private

Definition at line 27 of file Random.hpp.


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