Package jline.api.mam
Class Map_sample
java.lang.Object
jline.api.mam.Map_sample
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classStateful sampler for a BMAP (Batch Markovian Arrival Process) that retains the modulating phase between draws.static final classStateful single-event MAP sampler that carries the modulating phase across calls. -
Method Summary
Modifier and TypeMethodDescriptionstatic BmapSample[]bmap_sample(MatrixCell bmap, long n, Random random) Generates samples from a BMAP (Batch Markovian Arrival Process).static BmapSample[]bmap_sample(Matrix D0, Matrix D1_total, Matrix[] Dk, long n, Random random) Generates samples from a BMAP using D0, D1_total, and individual Dk matrices.static double[]map_sample(MatrixCell MAP, long n, Random random) Generates samples of inter-arrival times from a MAP using a specified number of samples and a random generator.static double[]map_sample(Matrix D0, Matrix D1, long n, Random random) Generates samples of inter-arrival times from a MAP using a specified number of samples and a random generator.static double[]map_sample(Matrix D0, Matrix D1, long n, Random random, PhaseTrace trace) Asmap_sample(Matrix, Matrix, long, Random), additionally recording the CTMC sojourns of the walk intotrace(cleared first; whenn > 1the sojourns of all samples are concatenated).
-
Method Details
-
map_sample
Generates samples of inter-arrival times from a MAP using a specified number of samples and a random generator.- Parameters:
MAP- the MatrixCell representing the MAP, containing the D0 and D1 matricesn- the number of samples to generaterandom- the random number generator to use- Returns:
- an array of doubles containing the generated samples
-
map_sample
Generates samples of inter-arrival times from a MAP using a specified number of samples and a random generator.- Parameters:
D0- the hidden transition matrix of the MAPD1- the visible transition matrix of the MAPn- the number of samples to generaterandom- the random number generator to use- Returns:
- an array of doubles containing the generated samples
-
map_sample
Asmap_sample(Matrix, Matrix, long, Random), additionally recording the CTMC sojourns of the walk intotrace(cleared first; whenn > 1the sojourns of all samples are concatenated). The random draws, their order and the returned samples are identical to the non-recording call: recording reads the walk, it never drives it.- Parameters:
trace- sojourn recorder, or null to record nothing
-
bmap_sample
Generates samples from a BMAP (Batch Markovian Arrival Process). -
bmap_sample
public static BmapSample[] bmap_sample(Matrix D0, Matrix D1_total, Matrix[] Dk, long n, Random random) Generates samples from a BMAP using D0, D1_total, and individual Dk matrices.
-