Storm 1.11.1.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
BESamples.cpp
Go to the documentation of this file.
1#include "BESamples.h"
2
5
6namespace storm::dft {
7namespace storage {
8namespace elements {
9
10template<typename ValueType>
11ValueType BESamples<ValueType>::getUnreliability(ValueType time) const {
12 auto iter = mActiveSamples.find(time);
13 STORM_LOG_THROW(iter != mActiveSamples.end(), storm::exceptions::InvalidArgumentException, "No sample for time point " << time << " given.");
14 return iter->second;
15}
16
17// Explicitly instantiate the class.
18template class BESamples<double>;
19template class BESamples<RationalFunction>;
20
21} // namespace elements
22} // namespace storage
23} // namespace storm::dft
BE where the failure distribution is defined by samples.
Definition BESamples.h:16
ValueType getUnreliability(ValueType time) const override
Return the unreliability of the BE up to the given time point.
Definition BESamples.cpp:11
#define STORM_LOG_THROW(cond, exception, message)
Definition macros.h:30