multovl  1.3
Multiple overlaps of genomic regions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
multovl::prob::UniformGen Class Reference

Convenience class that wraps a uniform RND generator. More...

#include "randomgen.hh"

Inheritance diagram for multovl::prob::UniformGen:

Public Member Functions

 UniformGen (unsigned int seed, double lower=0.0, double upper=1.0)
 
double operator() ()
 

Detailed Description

Convenience class that wraps a uniform RND generator.

Constructor & Destructor Documentation

multovl::prob::UniformGen::UniformGen ( unsigned int  seed,
double  lower = 0.0,
double  upper = 1.0 
)
inline

Constructor

Parameters
seedrandom seed to initialise
lowerthe lower bound of the uniform distribution, default 0.0
upperthe upper bound of the uniform distribution, default 1.0

Member Function Documentation

double multovl::prob::UniformGen::operator() ( )
inline

Generates a random variate.

Returns
a uniformly distributed variate between /lower/ and /upper/ as set in the ctor.

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