Public Member Functions | Private Attributes
swri_math_util::RandomGenerator Class Reference

#include <random.h>

List of all members.

Public Member Functions

void GetUniformRandomSample (int32_t min, int32_t max, int32_t count, std::vector< int32_t > &sample)
 RandomGenerator (int32_t seed=-1)

Private Attributes

boost::mutex mutex_
boost_random::mt19937 rng_
boost_random::random_device seed_

Detailed Description

Definition at line 54 of file random.h.


Constructor & Destructor Documentation

swri_math_util::RandomGenerator::RandomGenerator ( int32_t  seed = -1) [explicit]

Definition at line 34 of file random.cpp.


Member Function Documentation

void swri_math_util::RandomGenerator::GetUniformRandomSample ( int32_t  min,
int32_t  max,
int32_t  count,
std::vector< int32_t > &  sample 
)

Definition at line 39 of file random.cpp.


Member Data Documentation

Definition at line 68 of file random.h.

boost_random::mt19937 swri_math_util::RandomGenerator::rng_ [private]

Definition at line 67 of file random.h.

boost_random::random_device swri_math_util::RandomGenerator::seed_ [private]

Definition at line 66 of file random.h.


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


swri_math_util
Author(s): Marc Alban
autogenerated on Thu Jun 6 2019 20:34:41