Package jline.api.mam
Class Mmap_sample.MmapSampler
java.lang.Object
jline.api.mam.Mmap_sample.MmapSampler
- Enclosing class:
- Mmap_sample
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetPhase()Current modulating phase (0-based), or -1 before the first draw; 0 when exponential.Draws one marked inter-event time, advancing (and retaining) the phase.next(Random random, PhaseTrace trace) Asnext(Random), additionally recording the sojourns of the walk intotrace(cleared first).
-
Constructor Details
-
MmapSampler
-
-
Method Details
-
next
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
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
-