|
| DistributionWithReward (ValueType const &reward=storm::utility::zero< ValueType >()) |
| Creates an empty distribution.
|
|
| DistributionWithReward (DistributionWithReward const &other)=default |
|
DistributionWithReward & | operator= (DistributionWithReward const &other)=default |
|
| DistributionWithReward (DistributionWithReward &&other)=default |
|
DistributionWithReward & | operator= (DistributionWithReward &&other)=default |
|
bool | equals (DistributionWithReward< ValueType, StateType > const &other, storm::utility::ConstantsComparator< ValueType > const &comparator=storm::utility::ConstantsComparator< ValueType >()) const |
| Checks whether the two distributions specify the same probabilities to go to the same states.
|
|
bool | less (DistributionWithReward< ValueType, StateType > const &other, storm::utility::ConstantsComparator< ValueType > const &comparator) const |
|
void | setReward (ValueType const &reward) |
| Sets the reward of this distribution.
|
|
ValueType const & | getReward () const |
| Retrieves the reward of this distribution.
|
|
| Distribution () |
| Creates an empty distribution.
|
|
| Distribution (Distribution const &other)=default |
|
Distribution & | operator= (Distribution const &other)=default |
|
| Distribution (Distribution &&other)=default |
|
Distribution & | operator= (Distribution &&other)=default |
|
void | reserve (uint64_t size) |
|
void | add (Distribution const &other) |
| Adds the given distribution to the current one.
|
|
bool | equals (Distribution< ValueType, StateType > const &other, storm::utility::ConstantsComparator< ValueType > const &comparator=storm::utility::ConstantsComparator< ValueType >()) const |
| Checks whether the two distributions specify the same probabilities to go to the same states.
|
|
void | addProbability (StateType const &state, ValueType const &probability) |
| Assigns the given state the given probability under this distribution.
|
|
void | removeProbability (StateType const &state, ValueType const &probability, storm::utility::ConstantsComparator< ValueType > const &comparator=storm::utility::ConstantsComparator< ValueType >()) |
| Removes the given probability mass of going to the given state.
|
|
void | shiftProbability (StateType const &fromState, StateType const &toState, ValueType const &probability, storm::utility::ConstantsComparator< ValueType > const &comparator=storm::utility::ConstantsComparator< ValueType >()) |
| Removes the probability mass from one state and adds it to another.
|
|
iterator | begin () |
| Retrieves an iterator to the elements in this distribution.
|
|
const_iterator | begin () const |
| Retrieves an iterator to the elements in this distribution.
|
|
const_iterator | cbegin () const |
| Retrieves an iterator to the elements in this distribution.
|
|
iterator | end () |
| Retrieves an iterator past the elements in this distribution.
|
|
const_iterator | end () const |
| Retrieves an iterator past the elements in this distribution.
|
|
const_iterator | cend () const |
| Retrieves an iterator past the elements in this distribution.
|
|
void | scale (StateType const &state) |
| Scales the distribution by multiplying all the probabilities with 1/p where p is the probability of moving to the given state and sets the probability of moving to the given state to zero.
|
|
std::size_t | size () const |
| Retrieves the size of the distribution, i.e.
|
|
bool | less (Distribution< ValueType, StateType > const &other, storm::utility::ConstantsComparator< ValueType > const &comparator) const |
|
ValueType | getProbability (StateType const &state) const |
| Returns the probability of the given state.
|
|
void | normalize () |
| Normalizes the distribution such that the values sum up to one.
|
|
StateType | sampleFromDistribution (ValueType const &quantile) const |
| Given a value q, find the event in the ordered distribution that corresponds to this prob.
|
|
template<typename ValueType, typename StateType = uint32_t>
class storm::storage::DistributionWithReward< ValueType, StateType >
Definition at line 13 of file DistributionWithReward.h.