BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
BPMNOS::ExpectedValueFactory Class Reference

Factory for expected value functions in LIMEX expressions. More...

Detailed Description

Registers functions with the same names as random distributions, but returns the expected (mean) value instead of sampling.

Expected values:

  • uniform(a, b): (a + b) / 2
  • uniform_int(a, b): (a + b) / 2
  • normal(mean, stddev): mean
  • exponential(rate): 1 / rate
  • poisson(mean): mean
  • bernoulli(p): p
  • binomial(n, p): n * p
  • gamma(shape, scale): shape * scale
  • lognormal(logscale, shape): exp(logscale + shape^2 / 2)
  • geometric(p): (1 - p) / p

Definition at line 27 of file ExpectedValueFactory.h.

#include <ExpectedValueFactory.h>

Public Member Functions

void registerFunctions (LIMEX::Handle< double > &handle)
 Register all expected value functions with the given LIMEX handle.
 

Member Function Documentation

◆ registerFunctions()

void ExpectedValueFactory::registerFunctions ( LIMEX::Handle< double > & handle)

Definition at line 7 of file ExpectedValueFactory.cpp.


The documentation for this class was generated from the following files: