![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Stateful ME sampler holding the inversion table. More...
#include <line/api/mam/me_sample.h>
Public Member Functions | |
| MeSampler () | |
| MeSampler (const Map< T > &m, const std::vector< T > &a0=std::vector< T >()) | |
| Build the table of m, whose D0 is the ME matrix and whose entry law is map_pie. | |
| double | next (pfqn::McRng &rng) const |
| One variate, consuming exactly one uniform. | |
| double | quantile (double u) const |
| The inverse CDF at u, exposed so a caller can supply its own uniform. | |
Stateful ME sampler holding the inversion table.
The table is what makes the LDES usage pattern – one variate per service event, from a generator that lives as long as the station does – cost a binary search rather than a matrix exponential.
Definition at line 161 of file me_sample.h.
|
inline |
Definition at line 163 of file me_sample.h.
|
inlineexplicit |
Build the table of m, whose D0 is the ME matrix and whose entry law is map_pie.
Definition at line 167 of file me_sample.h.
References line::mam::Map< T >::D0, line::expm(), line::InputError::InputError(), line::mam::map_mean(), line::mam::map_pie(), line::mam::map_var(), and line::mam::Map< T >::order().
|
inline |
One variate, consuming exactly one uniform.
Definition at line 236 of file me_sample.h.
References line::pfqn::mc_uniform01(), and quantile().
Referenced by line::mam::me_sample().
|
inline |
The inverse CDF at u, exposed so a caller can supply its own uniform.
Definition at line 242 of file me_sample.h.
Referenced by next().