Package jline.api.mam

Class Rap_sampleKt

  • All Implemented Interfaces:

    
    public final class Rap_sampleKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static DoubleArray rap_sample(MatrixCell RAP, Long n, Random random) Generates random samples from a Rational Arrival Process (RAP) distribution.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 generate
        random - the random number generator to use
        Returns:

        array of n samples from the RAP marginal distribution