Class CheckPHRepresentation

java.lang.Object
jline.lib.butools.ph.CheckPHRepresentation

public final class CheckPHRepresentation extends Object
  • Method Details

    • checkPHRepresentation

      public static boolean checkPHRepresentation(Matrix alpha, Matrix A, double prec)
      Checks if the given vector and matrix define a valid phase- type representation.
      Parameters:
      alpha - Initial vector of the phase-type distribution to check
      A - Transient generator of the phase-type distribution to check
      prec - Numerical precision. The default value is 1e-14.
      Returns:
      True, if vector alpha is a probability vector and matrix A is a transient generator, and they have the same size.
    • checkPHRepresentation

      public static boolean checkPHRepresentation(Matrix alpha, Matrix A)
    • checkPHRepresentation

      public static boolean checkPHRepresentation(double[] alpha, Matrix A, double prec)
      Overload for double[] alpha.
    • checkPHRepresentation

      public static boolean checkPHRepresentation(double[] alpha, Matrix A)