scram::mef::Glm
Exponential with probability of failure on demand, hourly failure rate, hourly repairing rate, and time.
#include <exponential.h>
Inherits from scram::mef::ExpressionFormula< Glm >, scram::mef::Expression, boost::noncopyable
Public Functions
| Name | |
|---|---|
| template <typename T > <br>double | Compute(T && eval)<br>Computes the value for GLM expression. |
| double | Compute(double gamma, double lambda, double mu, double time) |
| Glm(Expression * gamma, Expression * lambda, Expression * mu, Expression * t)<br>Constructor for GLM or exponential expression with four arguments. | |
| virtual void | Validate() const override<br>Validates the expression. |
| virtual Interval | interval() override |
Additional inherited members
Public Functions inherited from scram::mef::ExpressionFormula< Glm >
| 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
template <typename T >
inline double Compute(
T && eval
)Computes the value for GLM expression.
function Compute
double Compute(
double gamma,
double lambda,
double mu,
double time
)function Glm
Glm(
Expression * gamma,
Expression * lambda,
Expression * mu,
Expression * t
)Constructor for GLM or exponential expression with four arguments.
Parameters:
- gamma Probability of failure on demand.
- lambda Hourly rate of failure.
- mu Hourly repair rate.
- t Mission time in hours.
function Validate
virtual void Validate() const overrideValidates the expression.
Exceptions:
- DomainError The argument value domains are invalid.
- ValidityError The arguments are invalid for setup.
Reimplements: scram::mef::Expression::Validate
This late validation is due to parameters that are defined late.
function interval
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
