Package jline.api.mc
Class Ctmc_isfeasible
java.lang.Object
jline.api.mc.Ctmc_isfeasible
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanChecks that Q is a valid infinitesimal generator, with the default tolerance of 1e-10.static booleanctmc_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.
-
Method Details
-
ctmc_isfeasible
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
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 matrixtolerance- numerical tolerance- Returns:
- true when Q is a valid generator
-