Package jline.lib.butools.ph
Class CheckMERepresentationKt
-
- All Implemented Interfaces:
public final class CheckMERepresentationKt
-
-
Method Summary
Modifier and Type Method Description final static BooleancheckMERepresentation(Matrix alpha, Matrix A, Double prec)Checks if the given vector and matrix define a valid matrix- exponential representation. final static BooleancheckMERepresentation(DoubleArray alpha, Matrix A, Double prec)Overload for DoubleArray alpha. -
-
Method Detail
-
checkMERepresentation
final static Boolean checkMERepresentation(Matrix alpha, Matrix A, Double prec)
Checks if the given vector and matrix define a valid matrix- exponential representation.
- Parameters:
alpha- Initial vector of the matrix-exponential distribution to checkA- Matrix parameter of the matrix-exponential distribution to checkprec- Numerical precision.- Returns:
True, if the matrix is a square matrix, the vector and the matrix have the same size, the dominant eigenvalue is negative and real
Note: This procedure does not check the positivity of the density! Call 'checkMEPositiveDensity' if it is needed, but keep in mind that it can be time-consuming, while this procedure is fast.
-
checkMERepresentation
final static Boolean checkMERepresentation(DoubleArray alpha, Matrix A, Double prec)
Overload for DoubleArray alpha.
-
-
-
-