Drake
RandomState< Distribution, Generator > Class Template Reference

State for a given random distribution and generator. More...

#include <drake/systems/primitives/random_source.h>

Collaboration diagram for RandomState< Distribution, Generator >:
[legend]

Public Types

typedef Generator::result_type Seed
 

Public Member Functions

 RandomState (Seed seed)
 
double GetNextValue ()
 Generate the next random value with the given distribution. More...
 

Static Public Attributes

static constexpr Seed default_seed = Generator::default_seed
 

Detailed Description

template<typename Distribution, typename Generator = std::mt19937>
class drake::systems::internal::RandomState< Distribution, Generator >

State for a given random distribution and generator.

This owns both the distribution and the generator.

Member Typedef Documentation

typedef Generator::result_type Seed

Constructor & Destructor Documentation

RandomState ( Seed  seed)
inlineexplicit

Here is the caller graph for this function:

Member Function Documentation

double GetNextValue ( )
inline

Generate the next random value with the given distribution.

Member Data Documentation

constexpr Seed default_seed = Generator::default_seed
static

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