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