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

APH(2) fit of three moments, with a fallback to adjusted moments (matlab/lib/m3a/m3a/aph2/aph2_fit.m). More...

#include <vector>
#include "line/api/mam/aph2_adjust.h"
#include "line/api/mam/aph2_fitall.h"
#include "line/api/mam/map_moment.h"
#include "line/num/number.h"
#include "line/util/error.h"
Include dependency graph for aph2_fit.h:

Go to the source code of this file.

Classes

struct  line::mam::Aph2FitResult< T >
 Result of aph2_fit. More...

Namespaces

namespace  line
namespace  line::mam

Functions

template<class T>
Aph2FitResult< T > line::mam::aph2_fit (const T &M1, const T &M2, const T &M3)
 Fit an APH(2) to (M1, M2, M3), relaxing the moments if necessary.

Detailed Description

APH(2) fit of three moments, with a fallback to adjusted moments (matlab/lib/m3a/m3a/aph2/aph2_fit.m).

Exact fitting is attempted first with aph2_fitall; if that yields nothing the moments are relaxed with aph2_adjust ('simple' method) and the fit is repeated. The first solution is returned, together with all of them.

Gated on transcendental arithmetic through aph2_fitall and aph2_adjust.

Definition in file aph2_fit.h.