Package jline.lib.butools.mc
Class CheckGeneratorKt
-
- All Implemented Interfaces:
public final class CheckGeneratorKt
-
-
Method Summary
Modifier and Type Method Description final static BooleancheckGenerator(Matrix Q, Boolean transient, Double prec)Checks if the matrix is a valid generator matrix: the matrix is a square matrix, the matrix has positive or zero off-diagonal elements, the diagonal of the matrix is negative, the rowsum of the matrix is 0. -
-
Method Detail
-
checkGenerator
final static Boolean checkGenerator(Matrix Q, Boolean transient, Double prec)
Checks if the matrix is a valid generator matrix: the matrix is a square matrix, the matrix has positive or zero off-diagonal elements, the diagonal of the matrix is negative, the rowsum of the matrix is 0.
If the "transient" parameter is set to true, it checks if the real part of the maximum absolute eigenvalue is less than zero and the rowsum is equal or less than 0.
- Parameters:
Q- The generator to check.transient- If true, the procedure checks if Q is a transient generator, otherwise it checks if it is a valid generator.prec- Entries with absolute value less than prec are considered to be zeros.- Returns:
The result of the check.
-
-
-
-