scenario_simulator_v2 C++ API
|
#include <histogram.hpp>
Classes | |
struct | BinAdaptor |
Public Member Functions | |
Histogram (const pugi::xml_node &, Scope &scope) | |
auto | evaluate () -> Object |
Public Member Functions inherited from openscenario_interpreter::Pointer< Expression > | |
decltype(auto) | rebind (Ts &&... xs) |
decltype(auto) | binding () const |
auto | type () const -> const std::type_info & |
auto | is () const -> bool |
auto | is_also () const |
auto | as () const -> U & |
decltype(auto) | evaluate (Ts &&... xs) const |
decltype(auto) | accomplished (Ts &&... xs) const |
decltype(auto) | description (Ts &&... xs) const |
Public Attributes | |
const std::list< HistogramBin > | bins |
struct openscenario_interpreter::syntax::Histogram::BinAdaptor | bin_adaptor |
std::piecewise_constant_distribution< Double::value_type > | distribute |
std::mt19937 | random_engine |
Additional Inherited Members | |
Static Public Member Functions inherited from openscenario_interpreter::Pointer< Expression > | |
static Pointer | bind (Ts &&... xs) |
|
explicit |
auto openscenario_interpreter::syntax::Histogram::evaluate | ( | ) | -> Object |
struct openscenario_interpreter::syntax::Histogram::BinAdaptor openscenario_interpreter::syntax::Histogram::bin_adaptor |
const std::list<HistogramBin> openscenario_interpreter::syntax::Histogram::bins |
Note: HistogramBin must be stored in continuous range and ascending order, to bins
std::piecewise_constant_distribution<Double::value_type> openscenario_interpreter::syntax::Histogram::distribute |
std::mt19937 openscenario_interpreter::syntax::Histogram::random_engine |