Package jline.api.mam
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. -
-
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
-
-
-
-