Package jline.api.mam

Class Map_sample

java.lang.Object
jline.api.mam.Map_sample

public final class Map_sample extends Object
  • Method Details

    • map_sample

      public static double[] 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.
      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

      public static double[] 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
    • map_sample

      public static double[] map_sample(Matrix D0, Matrix D1, long n, Random random, PhaseTrace trace)
      As map_sample(Matrix, Matrix, long, Random), additionally recording the CTMC sojourns of the walk into trace (cleared first; when n > 1 the sojourns of all samples are concatenated). The random draws, their order and the returned samples are identical to the non-recording call: recording reads the walk, it never drives it.
      Parameters:
      trace - sojourn recorder, or null to record nothing
    • bmap_sample

      public static BmapSample[] bmap_sample(MatrixCell bmap, long n, Random random)
      Generates samples from a BMAP (Batch Markovian Arrival Process).
    • bmap_sample

      public static BmapSample[] bmap_sample(Matrix D0, Matrix D1_total, Matrix[] Dk, long n, Random random)
      Generates samples from a BMAP using D0, D1_total, and individual Dk matrices.