Browse Source

symbolic Ctmc: Added method to compute the probability matrix.

tempestpy_adaptions
Tim Quatmann 4 years ago
parent
commit
64b9c176e7
  1. 4
      src/storm/models/symbolic/Ctmc.cpp
  2. 6
      src/storm/models/symbolic/Ctmc.h

4
src/storm/models/symbolic/Ctmc.cpp

@ -94,6 +94,10 @@ namespace storm {
}
}
template<storm::dd::DdType Type, typename ValueType>
storm::dd::Add<Type, ValueType> Ctmc<Type, ValueType>::computeProbabilityMatrix() const {
return this->getTransitionMatrix() / this->getExitRateVector();
}
template<storm::dd::DdType Type, typename ValueType>
template<typename NewValueType>

6
src/storm/models/symbolic/Ctmc.h

@ -142,6 +142,12 @@ namespace storm {
storm::dd::Add<Type, ValueType> const& getExitRateVector() const;
virtual void reduceToStateBasedRewards() override;
/*!
* @return the probabilistic transition matrix P
* @note getTransitionMatrix() retrieves the exit rate matrix R, where R(s,s') = r(s) * P(s,s')
*/
storm::dd::Add<Type, ValueType> computeProbabilityMatrix() const;
template<typename NewValueType>
std::shared_ptr<Ctmc<Type, NewValueType>> toValueType() const;

Loading…
Cancel
Save