scram::mef::Exponential
Negative exponential distribution with hourly failure rate and time.
#include <exponential.h>
Inherits from scram::mef::ExpressionFormula< Exponential >, scram::mef::Expression, boost::noncopyable
Public Functions
| Name | |
|---|---|
| template <typename T > <br>double | Compute(T && eval)<br>Evaluates the expression. |
| double | Compute(double lambda, double time) |
| Exponential(Expression * lambda, Expression * t)<br>Constructor for exponential expression with two arguments. | |
| virtual void | Validate() const override |
| virtual Interval | interval() override |
Additional inherited members
Public Functions inherited from scram::mef::ExpressionFormula< Exponential >
| Name | |
|---|---|
| virtual double | value()<br>Computes the expression with argument expression default values. |
| Expression(std::vector< Expression * > args ={})<br>Constructor for use by derived classes to register their arguments. |
Public Functions inherited from scram::mef::Expression
| Name | |
|---|---|
| Expression(std::vector< Expression * > args ={})<br>Constructor for use by derived classes to register their arguments. | |
| virtual | ~Expression() =default |
| const std::vector< Expression * > & | args() const |
| virtual double | value() =0 |
| virtual bool | IsDeviate()<br>Determines if the value of the expression contains deviate expressions. |
| double | Sample() |
| void | Reset()<br>This routine resets the sampling to get new values. |
Protected Functions inherited from scram::mef::Expression
| Name | |
|---|---|
| void | AddArg(Expression * arg)<br>Registers an additional argument expression. |
Public Functions Documentation
function Compute
cpp
template <typename T >
inline double Compute(
T && eval
)Evaluates the expression.
function Compute
cpp
double Compute(
double lambda,
double time
)function Exponential
cpp
Exponential(
Expression * lambda,
Expression * t
)Constructor for exponential expression with two arguments.
Parameters:
- lambda Hourly rate of failure.
- t Mission time in hours.
function Validate
cpp
virtual void Validate() const overrideExceptions:
- DomainError The failure rate or time is negative.
Reimplements: scram::mef::Expression::Validate
function interval
cpp
inline virtual Interval interval() overrideReturn: The domain interval for validation purposes only.
Reimplements: scram::mef::Expression::interval
Updated on 2025-11-11 at 16:51:08 +0000
