15 #ifndef OPENSCENARIO_INTERPRETER__HISTOGRAM_HPP_
16 #define OPENSCENARIO_INTERPRETER__HISTOGRAM_HPP_
24 inline namespace syntax
41 const std::list<HistogramBin>
bins;
48 for (
const auto & bin :
bins) {
49 intervals.emplace_back(bin.range.lower_limit.data);
57 std::piecewise_constant_distribution<Double::value_type>
distribute;
Definition: scope.hpp:154
Pointer< Expression > Object
Definition: object.hpp:26
Definition: histogram.hpp:44
BinAdaptor(const std::list< HistogramBin > &bins)
Definition: histogram.hpp:45
std::vector< double > densities
Definition: histogram.hpp:54
std::vector< double > intervals
Definition: histogram.hpp:54
Definition: histogram.hpp:37
const std::list< HistogramBin > bins
Definition: histogram.hpp:41
struct openscenario_interpreter::syntax::Histogram::BinAdaptor bin_adaptor
std::piecewise_constant_distribution< Double::value_type > distribute
Definition: histogram.hpp:57
Histogram(const pugi::xml_node &, Scope &scope)
Definition: histogram.cpp:22
auto evaluate() -> Object
Definition: histogram.cpp:32
std::mt19937 random_engine
Definition: histogram.hpp:59