Class Map_sampleKt
-
- All Implemented Interfaces:
public final class Map_sampleKt
-
-
Method Summary
Modifier and Type Method Description final static DoubleArraymap_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. final static DoubleArraymap_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. final static Array<BmapSample>bmap_sample(MatrixCell bmap, Long n, Random random)Generates samples from a BMAP (Batch Markovian Arrival Process). final static Array<BmapSample>bmap_sample(Matrix D0, Matrix D1_total, Array<Matrix> Dk, Long n, Random random)Generates samples from a BMAP using D0, D1_total, and individual Dk matrices. -
-
Method Detail
-
map_sample
final static DoubleArray 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.
This method generates
nsamples of inter-arrival times from the MAP defined by matrices D0 and D1. If the MAP has a single phase, the samples are generated from an exponential distribution. For multi-phase MAPs, the sampling accounts for transitions between states/phases.- 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
final static DoubleArray 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.
- 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
-
bmap_sample
final static Array<BmapSample> bmap_sample(MatrixCell bmap, Long n, Random random)
Generates samples from a BMAP (Batch Markovian Arrival Process).
This method generates
nsamples from the BMAP, returning both inter-arrival times and batch sizes. The BMAP is represented as a MatrixCell containing:bmap.get(0) = D0 (transitions without arrivals)
bmap.get(1) = D1_total (sum of all Dk - total arrival rate)
bmap.get(2) = D1 (transitions generating 1 arrival)
bmap.get(3) = D2 (transitions generating 2 arrivals)
...
bmap.get(k+1) = Dk (transitions generating k arrivals)
- Parameters:
bmap- the MatrixCell representing the BMAPn- the number of samples to generaterandom- the random number generator to use- Returns:
an array of BmapSample containing inter-arrival times and batch sizes
-
bmap_sample
final static Array<BmapSample> bmap_sample(Matrix D0, Matrix D1_total, Array<Matrix> Dk, Long n, Random random)
Generates samples from a BMAP using D0, D1_total, and individual Dk matrices.
- Parameters:
D0- the hidden transition matrix (no arrivals)D1_total- the sum of all Dk matrices (total arrival rate)Dk- array of Dk matrices where Dkk-1 generates batch size kn- the number of samples to generaterandom- the random number generator to use- Returns:
an array of BmapSample containing inter-arrival times and batch sizes
-
-
-
-