Package jline.api.mam

Class Aph2_assemble

java.lang.Object
jline.api.mam.Aph2_assemble

public final class Aph2_assemble extends Object
  • Method Details

    • aph2_assemble

      public static MatrixCell aph2_assemble(double l1, double l2, double p1)
      Assembles an acyclic phase-type (APH) distribution with two phases (APH(2)) using the given parameters.

      This method constructs the transition matrices D0 and D1 for an APH(2) distribution based on the parameters: l1 and l2 (the rates of the exponential phases), and p1 (the probability of transitioning between the phases). The resulting distribution has two phases, each represented by an exponential distribution, with transitions between the phases as specified by the given parameters.

      Parameters:
      l1 - the rate of the first exponential phase
      l2 - the rate of the second exponential phase
      p1 - the probability of transitioning from the first phase to the second phase
      Returns:
      a MatrixCell containing the transition matrices D0 and D1 of the APH(2) distribution