Package jline.lib.butools.map
Class CheckMAPRepresentationKt
-
- All Implemented Interfaces:
public final class CheckMAPRepresentationKt
-
-
Method Summary
Modifier and Type Method Description final static BooleancheckMAPRepresentation(Matrix D0, Matrix D1, Double prec)Checks if the input matrices define a continuous time MAP. final static BooleancheckRAPRepresentation(Matrix H0, Matrix H1, Double prec)Checks if the input matrices define a valid RAP representation. -
-
Method Detail
-
checkMAPRepresentation
final static Boolean checkMAPRepresentation(Matrix D0, Matrix D1, Double prec)
Checks if the input matrices define a continuous time MAP.
Matrices D0 and D1 must have the same size, D0 must be a transient generator matrix, D1 has only non-negative elements, and the rowsum of D0+D1 is 0 (up to the numerical precision).
- Parameters:
D0- The D0 matrix of the MAP to checkD1- The D1 matrix of the MAP to checkprec- Numerical precision, the default value is 1e-12- Returns:
The result of the check
-
checkRAPRepresentation
final static Boolean checkRAPRepresentation(Matrix H0, Matrix H1, Double prec)
Checks if the input matrices define a valid RAP representation.
- Parameters:
H0- The H0 matrix of the RAP to checkH1- The H1 matrix of the RAP to checkprec- Numerical precision, the default value is 1e-12- Returns:
The result of the check
-
-
-
-