12template<
typename BeliefType>
void reserve(uint64_t size)
Reserves space to build the belief more efficiently.
BeliefType build()
Builds the belief and returns it.
ValueType normalize()
Normalizes the belief, i.e., if the sum of the values is not 1, it divides all values by the sum.
void setObservation(BeliefObservationType const &observation)
Sets the observation of the belief.
typename BeliefType::ValueType ValueType
void addValue(BeliefStateType const &state, ValueType const &value)
Adds a probability value to the given state.
void reset()
Resets the builder to its initial state.
constexpr BeliefObservationType InvalidObservation
Required e.g. for comparing two beliefs.
uint64_t BeliefStateType
Shared identifiers and sparse-container types used by the belief subsystem.
uint32_t BeliefObservationType
boost::container::flat_map< BeliefStateType, BeliefValueType > BeliefFlatMap