Public Member Functions | Private Attributes | List of all members
swri_math_util::RandomGenerator Class Reference

#include <random.h>

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

◆ RandomGenerator()

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

Definition at line 34 of file random.cpp.

Member Function Documentation

◆ GetUniformRandomSample()

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

◆ mutex_

boost::mutex swri_math_util::RandomGenerator::mutex_
private

Definition at line 68 of file random.h.

◆ rng_

boost_random::mt19937 swri_math_util::RandomGenerator::rng_
private

Definition at line 67 of file random.h.

◆ seed_

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 Sat Jan 21 2023 03:13:11