Package jline.api.mam

Class Mmap_sample.MmapSampler

java.lang.Object
jline.api.mam.Mmap_sample.MmapSampler
Enclosing class:
Mmap_sample

public static final class Mmap_sample.MmapSampler extends Object
Stateful sampler for an MMAP {D0, D1_agg, D11..D1K} (M3A layout) that retains the modulating phase between draws, so successive calls reproduce the inter-arrival autocorrelation (mirrors Map_sample.MapSampler / BmapSampler). Each draw also returns the 1-based mark of the arrival, sampled with probability D1k(i,j)/D1_agg(i,j) on the firing transition.
  • Constructor Details

    • MmapSampler

      public MmapSampler(MatrixCell mmap)
  • Method Details

    • next

      public Mmap_sample.MarkedSample next(Random random)
      Draws one marked inter-event time, advancing (and retaining) the phase.
    • getPhase

      public int getPhase()
      Current modulating phase (0-based), or -1 before the first draw; 0 when exponential.
    • next

      public Mmap_sample.MarkedSample next(Random random, PhaseTrace trace)
      As next(Random), additionally recording the sojourns of the walk into trace (cleared first). Same draws, same result.
      Parameters:
      trace - sojourn recorder, or null to record nothing