Package jline.api.mam
Class Rap_sampleKt
-
- All Implemented Interfaces:
public final class Rap_sampleKt
-
-
Method Summary
Modifier and Type Method Description final static DoubleArrayrap_sample(MatrixCell RAP, Long n, Random random)Generates random samples from a Rational Arrival Process (RAP) distribution. -
-
Method Detail
-
rap_sample
final static DoubleArray rap_sample(MatrixCell RAP, Long n, Random random)
Generates random samples from a Rational Arrival Process (RAP) distribution.
The marginal distribution of RAP inter-arrival times is a Matrix Exponential (ME) distribution, so this function delegates to me_sample.
Note: This generates samples from the marginal distribution only. It does not preserve the correlation structure of the RAP. For full RAP simulation with correlations, use map_sample instead.
- Parameters:
RAP- the RAP distribution as a MatrixCell {H0, H1}n- the number of samples to generaterandom- the random number generator to use- Returns:
array of n samples from the RAP marginal distribution
-
-
-
-