Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
BEExponential.cpp
Go to the documentation of this file.
1#include "BEExponential.h"
2
4
5namespace storm::dft {
6namespace storage {
7namespace elements {
8
9template<>
10double BEExponential<double>::getUnreliability(double time) const {
11 // 1 - e^(-lambda * t)
12 // where lambda is the rate
13 return 1 - std::exp(-this->activeFailureRate() * time);
14}
15
16template<typename ValueType>
17ValueType BEExponential<ValueType>::getUnreliability(ValueType time) const {
18 STORM_LOG_THROW(false, storm::exceptions::NotSupportedException, "Computing cumulative failure probability not supported for this data type.");
19}
20
21// Explicitly instantiate the class.
22template class BEExponential<double>;
24
25} // namespace elements
26} // namespace storage
27} // namespace storm::dft
BE with exponential failure distribution.
ValueType getUnreliability(ValueType time) const override
Return the unreliability of the BE up to the given time point.
#define STORM_LOG_THROW(cond, exception, message)
Definition macros.h:30