Skip to content

scram::mef::NormalDeviate ​

Normal distribution.

#include <random_deviate.h>

Inherits from scram::mef::RandomDeviate, scram::mef::Expression, boost::noncopyable

Public Functions ​

Name
NormalDeviate(Expression * mean, Expression * sigma)<br>Setup for normal distribution.
virtual voidValidate() const override
virtual doublevalue() override
virtual Intervalinterval() override

Additional inherited members ​

Public Functions inherited from scram::mef::RandomDeviate

Name
virtual boolIsDeviate() override<br>Determines if the value of the expression contains deviate expressions.
Expression(std::vector< Expression * > args ={})<br>Constructor for use by derived classes to register their arguments.
voidseed(unsigned seed)<br>Sets the seed of the underlying random number generator.

Protected Functions inherited from scram::mef::RandomDeviate

Name
std::mt19937 &rng()

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 boolIsDeviate()<br>Determines if the value of the expression contains deviate expressions.
doubleSample()
voidReset()<br>This routine resets the sampling to get new values.

Protected Functions inherited from scram::mef::Expression

Name
voidAddArg(Expression * arg)<br>Registers an additional argument expression.

Public Functions Documentation ​

function NormalDeviate ​

cpp
NormalDeviate(
    Expression * mean,
    Expression * sigma
)

Setup for normal distribution.

Parameters:

  • mean The mean of the distribution.
  • sigma The standard deviation of the distribution.

function Validate ​

cpp
virtual void Validate() const override

Exceptions:

Reimplements: scram::mef::Expression::Validate

function value ​

cpp
inline virtual double value() override

Return: The mean value of this expression.

Reimplements: scram::mef::Expression::value

function interval ​

cpp
inline virtual Interval interval() override

Return: ~99.9% confidence interval.

Reimplements: scram::mef::Expression::interval


Updated on 2025-12-19 at 21:56:46 +0000