Class Map_sample.BmapSampler
- Enclosing class:
- Map_sample
Successive calls to next(Random) continue the BMAP's underlying
CTMC from the phase reached at the previous batch arrival, reproducing both
the inter-arrival and batch-size autocorrelation. This differs from
repeatedly invoking Map_sample.bmap_sample(MatrixCell, long, Random) with
n=1, which re-initialises the phase from the stationary vector
map_pie on every call and therefore yields an i.i.d. (renewal)
batch-arrival sequence with the correct marginals but zero autocorrelation.
Use this sampler when a BMAP is an arrival process whose burstiness must be
preserved across events.
The phase persists across idle periods (it is only advanced when
next(Random) is called), matching the MAP/MAP/1 convention in which
the arrival process is not frozen while downstream stations are busy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetPhase()Current modulating phase (0-based), or -1 before the first draw; 0 when exponential.Draws one BMAP event (inter-arrival time and batch size), advancing (and retaining) the modulating phase.next(Random random, PhaseTrace trace) Asnext(Random), additionally recording the sojourns of the walk intotrace(cleared first).
-
Constructor Details
-
BmapSampler
-
-
Method Details
-
next
Draws one BMAP event (inter-arrival time and batch size), advancing (and retaining) the modulating phase. -
getPhase
public int getPhase()Current modulating phase (0-based), or -1 before the first draw; 0 when exponential. -
next
Asnext(Random), additionally recording the sojourns of the walk intotrace(cleared first). Same draws, same result.- Parameters:
trace- sojourn recorder, or null to record nothing
-