LocARNA-1.9.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions
LocARNA::DiscreteDistribution Class Reference

#include <discrete_distribution.hh>

List of all members.

Public Member Functions

 DiscreteDistribution (const std::vector< double > &distvec)
 Construct with distribution vector.
size_t operator() (size_t x)
 get random number

Detailed Description

Generate discrete distributions from pseudo random numbers


Constructor & Destructor Documentation

LocARNA::DiscreteDistribution::DiscreteDistribution ( const std::vector< double > &  distvec) [inline, explicit]

Construct with distribution vector.

Parameters:
distvecvector defining discrete distribution

Member Function Documentation

size_t LocARNA::DiscreteDistribution::operator() ( size_t  x) [inline]

get random number

Parameters:
xrandom number
Returns:
random number from discrete distribution

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends