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