libfbm  0.1
Simulation of multi-dimensional stationary Gaussian processes and fractional Brownian motion.
 All Classes Namespaces Functions Friends
Public Member Functions
libfbm::UniformRandomGenerator Class Reference

Uniform random generator based on GSL, producing floating point numbers uniformly distributed in the range [0,1). More...

#include <libfbm.hpp>

Inheritance diagram for libfbm::UniformRandomGenerator:
libfbm::RandomGenerator

List of all members.

Public Member Functions

 UniformRandomGenerator ()
 UniformRandomGenerator (unsigned long int seed, const gsl_rng_type *type)
 UniformRandomGenerator (const UniformRandomGenerator &copy)
 ~UniformRandomGenerator ()
const UniformRandomGeneratoroperator= (const UniformRandomGenerator &copy)
void setSeed (unsigned long int seed)
double next ()
 Next random value.
RandomGeneratorclone () const
 Allocates a completely new random generator (in the heap using new), copying the state of this.
- Public Member Functions inherited from libfbm::RandomGenerator
 RandomGenerator ()
virtual ~RandomGenerator ()

Detailed Description

Uniform random generator based on GSL, producing floating point numbers uniformly distributed in the range [0,1).

The default gsl_rng_type use is gsl_rng_mt19937.

Definition at line 281 of file libfbm.hpp.


Constructor & Destructor Documentation

libfbm::UniformRandomGenerator::UniformRandomGenerator ( )
libfbm::UniformRandomGenerator::UniformRandomGenerator ( unsigned long int  seed,
const gsl_rng_type *  type 
)
libfbm::UniformRandomGenerator::UniformRandomGenerator ( const UniformRandomGenerator copy)
libfbm::UniformRandomGenerator::~UniformRandomGenerator ( )

Member Function Documentation

RandomGenerator* libfbm::UniformRandomGenerator::clone ( ) const
virtual

Allocates a completely new random generator (in the heap using new), copying the state of this.

Implements libfbm::RandomGenerator.

double libfbm::UniformRandomGenerator::next ( )
virtual

Next random value.

Implements libfbm::RandomGenerator.

const UniformRandomGenerator& libfbm::UniformRandomGenerator::operator= ( const UniformRandomGenerator copy)
void libfbm::UniformRandomGenerator::setSeed ( unsigned long int  seed)
virtual

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