Package jline.api.mc

Class Ctmc_isfeasible

java.lang.Object
jline.api.mc.Ctmc_isfeasible

public final class Ctmc_isfeasible extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    Checks that Q is a valid infinitesimal generator, with the default tolerance of 1e-10.
    static boolean
    ctmc_isfeasible(Matrix Q, double tolerance)
    Checks that Q is a valid infinitesimal generator: square, non-negative off-diagonal entries, non-positive diagonal, and zero row sums, each up to the given tolerance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • ctmc_isfeasible

      public static boolean ctmc_isfeasible(Matrix Q)
      Checks that Q is a valid infinitesimal generator, with the default tolerance of 1e-10.
      Parameters:
      Q - candidate generator matrix
      Returns:
      true when Q is a valid generator
    • ctmc_isfeasible

      public static boolean ctmc_isfeasible(Matrix Q, double tolerance)
      Checks that Q is a valid infinitesimal generator: square, non-negative off-diagonal entries, non-positive diagonal, and zero row sums, each up to the given tolerance. Twin of the MATLAB ctmc_isfeasible and of the Python api.mc.ctmc_isfeasible; note that dtmc_isfeasible instead returns a precision level rather than a flag.
      Parameters:
      Q - candidate generator matrix
      tolerance - numerical tolerance
      Returns:
      true when Q is a valid generator