15 #ifndef OPENSCENARIO_INTERPRETER__PROBABILITY_DISTRIBUTION_SET_HPP_
16 #define OPENSCENARIO_INTERPRETER__PROBABILITY_DISTRIBUTION_SET_HPP_
23 inline namespace syntax
37 const std::vector<ProbabilityDistributionSetElement>
elements;
42 const std::vector<ProbabilityDistributionSetElement> &
elements)
44 for (
const auto & element :
elements) {
46 values.emplace_back(element.value);
Definition: scope.hpp:154
Definition: escape_sequence.hpp:22
Pointer< Expression > Object
Definition: object.hpp:26
Definition: probability_distribution_set.hpp:40
std::vector< String > values
Definition: probability_distribution_set.hpp:50
ProbabilityDistributionSetAdaptor(const std::vector< ProbabilityDistributionSetElement > &elements)
Definition: probability_distribution_set.hpp:41
std::vector< double > probabilities
Definition: probability_distribution_set.hpp:49
Definition: probability_distribution_set.hpp:36
std::discrete_distribution< std::size_t > distribute
Definition: probability_distribution_set.hpp:53
struct openscenario_interpreter::syntax::ProbabilityDistributionSet::ProbabilityDistributionSetAdaptor adaptor
ProbabilityDistributionSet(const pugi::xml_node &, Scope &scope)
Definition: probability_distribution_set.cpp:29
auto evaluate() -> Object
Definition: probability_distribution_set.cpp:40
const std::vector< ProbabilityDistributionSetElement > elements
Definition: probability_distribution_set.hpp:37
std::mt19937 random_engine
Definition: probability_distribution_set.hpp:55