Package jline.api.mam

Class Map_sample.BmapSampler

java.lang.Object
jline.api.mam.Map_sample.BmapSampler
Enclosing class:
Map_sample

public static final class Map_sample.BmapSampler extends Object
Stateful sampler for a BMAP (Batch Markovian Arrival Process) that retains the modulating phase between draws.

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 Details

    • BmapSampler

      public BmapSampler(MatrixCell bmap)
  • Method Details

    • next

      public BmapSample next(Random random)
      Draws one BMAP event (inter-arrival time and batch size), advancing (and retaining) the modulating phase.