C++QEDCore  2.100.2 (v2 Milestone 10 Development branch)
a framework for simulating open quantum dynamics – core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
randomized::Randomized Class Referenceabstract

A common interface for random-number generators. More...

#include <Randomized.h>

+ Inheritance diagram for randomized::Randomized:
+ Collaboration diagram for randomized::Randomized:

Public Types

typedef boost::shared_ptr< RandomizedPtr
 

Public Member Functions

double operator() ()
 sampling of uniform distribution over the interval [0:1)
 
const dcomp dcompRan ()
 sampling of a uniform distribution over unit square on the complex plane
 

Friends

class boost::serialization::access
 

Related Functions

(Note that these are not member functions.)

template<typename D >
const D sample (Randomized::Ptr ran)
 
template<>
const double sample (Randomized::Ptr ran)
 
template<>
const dcomp sample (Randomized::Ptr ran)
 

Detailed Description

A common interface for random-number generators.

The class can serialize the state of the generator allowing for restoration from an archive (cf. Boost.Serialization)

Note
The logical state of the class is the state of the underlying generator, so that everything that (may) change this state, for example sampling, is logically non-const.

Definition at line 43 of file Randomized.h.

Friends And Related Function Documentation

template<typename D >
const D sample ( Randomized::Ptr  ran)
related
const double sample< double > ( Randomized::Ptr  ran)
related

Definition at line 97 of file Randomized.h.

const dcomp sample< dcomp > ( Randomized::Ptr  ran)
related

Definition at line 105 of file Randomized.h.


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