LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
aph2_assemble.h File Reference

Assemble an APH(2) from its canonical parameters (matlab/lib/m3a/m3a/aph2/aph2_assemble.m). More...

Include dependency graph for aph2_assemble.h:

Go to the source code of this file.

Namespaces

namespace  line
namespace  line::mam

Functions

template<class T>
Map< T > line::mam::aph2_assemble (const T &l1, const T &l2, const T &p1)
 APH(2) with phase means l1, l2 and continuation probability p1.

Detailed Description

Assemble an APH(2) from its canonical parameters (matlab/lib/m3a/m3a/aph2/aph2_assemble.m).

l1 and l2 are the MEAN holding times of the two phases (not rates) and p1 is the probability of continuing from phase 1 to phase 2:

D0 = [ -1/l1 p1/l1 ; 0 -1/l2 ] D1 = [ (1-p1)/l1 0 ; 1/l2 0 ]

Pure field arithmetic – four reciprocals and three products – so this is exact at Rational and is deliberately NOT gated on transcendental arithmetic. The moment-matching step that produces l1, l2, p1 is the part that needs a square root; see aph2_fitall.h.

Definition in file aph2_assemble.h.