6template<
typename ValueType>
9template<
typename ValueType>
14 for (
auto const& observation : pomdp.getObservations()) {
15 if (seenOnce.
get(observation)) {
16 seenMoreThanOnce.
set(observation);
18 seenOnce.
set(observation);
22 for (uint64_t state = 0; state < pomdp.getNumberOfStates(); ++state) {
23 if (!seenMoreThanOnce.
get(pomdp.getObservation(state))) {
24 uniqueObservation.
set(state);
27 return uniqueObservation;
UniqueObservationStates(storm::models::sparse::Pomdp< ValueType > const &pomdp)
storm::storage::BitVector analyse() const
This class represents a partially observable Markov decision process.
A bit vector that is internally represented as a vector of 64-bit values.
void set(uint64_t index, bool value=true)
Sets the given truth value at the given index.
bool get(uint64_t index) const
Retrieves the truth value of the bit at the given index and performs a bound check.
The contract of a DD backend.