Class APH

All Implemented Interfaces:
Serializable, Copyable

public class APH extends Markovian
An acyclic phase type distribution
See Also:
  • Constructor Details

  • Method Details

    • getSubgenerator

      public Matrix getSubgenerator()
      Overrides:
      getSubgenerator in class Markovian
    • fit

      public static APH fit(double mean, double scv, double skew)
    • fitCentral

      public static APH fitCentral(double mean, double var, double skew)
    • fitMeanAndSCV

      public static APH fitMeanAndSCV(double mean, double scv)
    • fitRawMoments

      public static APH fitRawMoments(double m1, double m2, double m3)
      Fits an APH distribution from the first three raw moments.
      Parameters:
      m1 - First raw moment (mean)
      m2 - Second raw moment
      m3 - Third raw moment
      Returns:
      APH distribution fitted to the given moments
    • evalLST

      public double evalLST(double s)
      Description copied from class: Distribution
      Evaluate the Laplace-Stieltjes Transform at s
      Overrides:
      evalLST in class Markovian
      Parameters:
      s - the Laplace domain variable
      Returns:
      the LST value at s
    • getInitProb

      public Matrix getInitProb()
      Description copied from class: Markovian
      Gets the initial probability vector.
      Overrides:
      getInitProb in class Markovian
      Returns:
      the initial probabilities
    • initProb

      public Matrix initProb()
      Kotlin-style property alias for getInitProb()
      Overrides:
      initProb in class Markovian
    • evalCDFMatrix

      public Matrix evalCDFMatrix()
      Evaluates the CDF at default time points and returns as a Matrix. Returns a matrix with [CDF_value, time] pairs (matching MATLAB format).
      Returns:
      Matrix with numPoints rows and 2 columns [CDF, time]
    • evalCDFMatrix

      public Matrix evalCDFMatrix(double[] timePoints)
      Evaluates the CDF at specified time points and returns as a Matrix.
      Parameters:
      timePoints - Array of time points at which to evaluate the CDF
      Returns:
      Matrix with timePoints.length rows and 2 columns [CDF, time]