Package jline.lib.butools.ph
Class CheckRAPRepresentationKt
-
- All Implemented Interfaces:
public final class CheckRAPRepresentationKt
-
-
Method Summary
Modifier and Type Method Description final static BooleancheckRAPRepresentation(Matrix H0, Matrix H1, Double prec)Checks if the given matrices define a valid Rational Arrival Process (RAP) representation. -
-
Method Detail
-
checkRAPRepresentation
final static Boolean checkRAPRepresentation(Matrix H0, Matrix H1, Double prec)
Checks if the given matrices define a valid Rational Arrival Process (RAP) representation.
A RAP is valid if:
H0 and H1 are square matrices of the same size
H0 + H1 forms a valid infinitesimal generator (row sums = 0)
All eigenvalues of H0 have negative real parts
Dominant eigenvalue of H0 is negative and real
- Parameters:
H0- The H0 matrix of the RAP (hidden transition rates)H1- The H1 matrix of the RAP (visible transition rates)prec- Numerical precision.- Returns:
True if the representation is valid, false otherwise
Note: RAP is a generalization of MAP. Unlike MAP, RAP allows H1 to have negative entries, but H0 + H1 must still form a valid generator.
-
-
-
-