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<storm::dd::DdType Type, typename ValueType>
template<typename NewValueType> template<typename NewValueType>

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

@ -143,6 +143,12 @@ namespace storm {
virtual void reduceToStateBasedRewards() override; 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> template<typename NewValueType>
std::shared_ptr<Ctmc<Type, NewValueType>> toValueType() const; std::shared_ptr<Ctmc<Type, NewValueType>> toValueType() const;

Loading…
Cancel
Save