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

MAP(2) matching mean, SCV, skewness and the index of dispersion for counts (matlab/lib/kpctoolbox/mmpp/mmpp2_fit1.m). More...

Include dependency graph for mmpp2_fit1.h:

Go to the source code of this file.

Namespaces

namespace  line
namespace  line::mam

Functions

template<class T>
Map2FitResult< T > line::mam::mmpp2_fit1 (const T &mean, const T &scv, const T &skew, const T &idc)
 MAP(2) with the given mean, SCV, skewness and IDC.

Detailed Description

MAP(2) matching mean, SCV, skewness and the index of dispersion for counts (matlab/lib/kpctoolbox/mmpp/mmpp2_fit1.m).

The four characteristics are converted to the (e1, e2, e3, g2) coordinates of map2_fit: E2 = (1 + scv) E1^2, g2 = -(scv - idc)/(idc - 1), E3 = -(2 E1^3 - 3 E1 E2 - skew (E2 - E1^2)^(3/2)), with skew = -1 acting as the sentinel that lets map2_fit choose E3 itself.

Gated on transcendental arithmetic: the third moment needs (E2 - E1^2)^(3/2) and map2_fit is itself gated.

Definition in file mmpp2_fit1.h.