Package jline.lib.butools.ph
Class CheckRAPRepresentation
java.lang.Object
jline.lib.butools.ph.CheckRAPRepresentation
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckRAPRepresentation(Matrix H0, Matrix H1) static booleancheckRAPRepresentation(Matrix H0, Matrix H1, double prec) Checks if the given matrices define a valid Rational Arrival Process (RAP) representation.
-
Method Details
-
checkRAPRepresentation
Checks if the given matrices define a valid Rational Arrival Process (RAP) representation. The dominance test follows BuTools: the eigenvalues are split into the real ones and the complex ones, and the representation is rejected only when the largest real part among the COMPLEX eigenvalues strictly exceeds the largest real eigenvalue. A tie is accepted, which is what the MATLAB and Python ports do (they emit a verbose note and return true). Picking the single eigenvalue of smallest modulus of the real part and demanding that it be real, as an earlier version of this port did, rejects valid RAPs whose dominant real eigenvalue is tied in real part with a complex pair, and does so nondeterministically because the tie is broken by the order in which eig() happens to return the eigenvalues.- Parameters:
H0- The H0 matrix of the RAPH1- The H1 matrix of the RAPprec- Numerical precision. Default 1e-12, as in BuTools.- Returns:
- True if the representation is valid, false otherwise
-
checkRAPRepresentation
-