Package jline.lib.butools.dmap
Class CheckDMAPRepresentationKt
-
- All Implemented Interfaces:
public final class CheckDMAPRepresentationKt
-
-
Method Summary
Modifier and Type Method Description final static BooleancheckDMAPRepresentation(Matrix D0, Matrix D1, Double prec)Checks if the input matrices define a discrete time MAP. -
-
Method Detail
-
checkDMAPRepresentation
final static Boolean checkDMAPRepresentation(Matrix D0, Matrix D1, Double prec)
Checks if the input matrices define a discrete time MAP.
Matrices D0 and D1 must have the same size, D0 must be a transient probability matrix, D1 has only non-negative elements, and the rowsum of D0+D1 is 1 (up to the numerical precision).
- Parameters:
D0- The D0 matrix of the DMAP to checkD1- The D1 matrix of the DMAP to checkprec- Numerical precision, default value is 1e-14- Returns:
True if the matrices define a valid DMAP
-
-
-
-