Package jline.api.mam

Class Map_sampleKt

  • All Implemented Interfaces:

    
    public final class Map_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
    • Constructor Detail

    • 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 n samples 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 matrices
        n - the number of samples to generate
        random - 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 MAP
        D1 - the visible transition matrix of the MAP
        n - the number of samples to generate
        random - 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 n samples 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 BMAP
        n - the number of samples to generate
        random - 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 k
        n - the number of samples to generate
        random - the random number generator to use
        Returns:

        an array of BmapSample containing inter-arrival times and batch sizes