Drake C++ Documentation
RandomSimulationResult Struct Reference

Detailed Description

A snapshot of the generator used to produce the random simulation.

Use, e.g.,

RandomGenerator generator(result.generator_snapshot)
RandomSimulation(make_simulator, output, final_time, &generator)

for a deterministic playback of the sampled simulation. RandomNumberEngine concept, if you wish to serialize the results. Note that performing any non-const operations on generator_snapshot may advance the state of the generator and make it no longer capable of reproducing the simulation.

#include <drake/systems/analysis/monte_carlo.h>

Public Member Functions

 RandomSimulationResult (const RandomGenerator &generator, double value=0.0)
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable
 RandomSimulationResult (const RandomSimulationResult &)=default
RandomSimulationResultoperator= (const RandomSimulationResult &)=default
 RandomSimulationResult (RandomSimulationResult &&)=default
RandomSimulationResultoperator= (RandomSimulationResult &&)=default

Public Attributes

RandomGenerator generator_snapshot
double output {}

Constructor & Destructor Documentation

◆ RandomSimulationResult() [1/3]

◆ RandomSimulationResult() [2/3]

◆ RandomSimulationResult() [3/3]

RandomSimulationResult ( const RandomGenerator generator,
double  value = 0.0 

Member Function Documentation

◆ operator=() [1/2]

RandomSimulationResult& operator= ( const RandomSimulationResult )

◆ operator=() [2/2]

RandomSimulationResult& operator= ( RandomSimulationResult &&  )

Member Data Documentation

◆ generator_snapshot

RandomGenerator generator_snapshot

◆ output

double output {}

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