Package jline.api.mam
Class Map_checkfeasibleKt
-
- All Implemented Interfaces:
public final class Map_checkfeasibleKt
-
-
Method Summary
Modifier and Type Method Description final static Boolean
map_checkfeasible(MatrixCell MAP, Double TOL)
Check the feasibility of a MAP with detailed validation. final static Boolean
map_checkfeasible(Matrix D0, Matrix D1, Double TOL)
Check the feasibility of a MAP given separate D0 and D1 matrices. final static Boolean
map_checkfeasible(Matrix D0, Matrix D1)
Check the feasibility of a MAP given separate D0 and D1 matrices. -
-
Method Detail
-
map_checkfeasible
final static Boolean map_checkfeasible(MatrixCell MAP, Double TOL)
Check the feasibility of a MAP with detailed validation.
This function performs comprehensive validation of MAP matrices following the same approach as the MATLAB implementation. It checks:
Matrix dimensions and finite values
D0 diagonal elements (must be ≤ 0)
D0 off-diagonal elements (must be ≥ 0)
D1 elements (must be ≥ 0)
Generator property (row sums = 0)
Irreducibility and numerical stability
- Parameters:
MAP
- the MatrixCell representing the MAP transition matricesTOL
- the tolerance level for numerical stability checks- Returns:
true if the MAP is feasible, false otherwise
-
map_checkfeasible
@JvmOverloads() final static Boolean map_checkfeasible(Matrix D0, Matrix D1, Double TOL)
Check the feasibility of a MAP given separate D0 and D1 matrices.
- Parameters:
D0
- the hidden transition matrix (transitions without arrivals)D1
- the visible transition matrix (transitions with arrivals)TOL
- the tolerance level for numerical stability checks (default: 1e-14)- Returns:
true if the MAP is feasible, false otherwise
-
map_checkfeasible
@JvmOverloads() final static Boolean map_checkfeasible(Matrix D0, Matrix D1)
Check the feasibility of a MAP given separate D0 and D1 matrices.
- Parameters:
D0
- the hidden transition matrix (transitions without arrivals)D1
- the visible transition matrix (transitions with arrivals)- Returns:
true if the MAP is feasible, false otherwise
-
-
-
-