Class CheckMAPRepresentationKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Boolean checkMAPRepresentation(Matrix D0, Matrix D1, Double prec) Checks if the input matrices define a continuous time MAP.
      final static Boolean checkRAPRepresentation(Matrix H0, Matrix H1, Double prec) Checks if the input matrices define a valid RAP representation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • checkMAPRepresentation

         final static Boolean checkMAPRepresentation(Matrix D0, Matrix D1, Double prec)

        Checks if the input matrices define a continuous time MAP.

        Matrices D0 and D1 must have the same size, D0 must be a transient generator matrix, D1 has only non-negative elements, and the rowsum of D0+D1 is 0 (up to the numerical precision).

        Parameters:
        D0 - The D0 matrix of the MAP to check
        D1 - The D1 matrix of the MAP to check
        prec - Numerical precision, the default value is 1e-12
        Returns:

        The result of the check

      • checkRAPRepresentation

         final static Boolean checkRAPRepresentation(Matrix H0, Matrix H1, Double prec)

        Checks if the input matrices define a valid RAP representation.

        Parameters:
        H0 - The H0 matrix of the RAP to check
        H1 - The H1 matrix of the RAP to check
        prec - Numerical precision, the default value is 1e-12
        Returns:

        The result of the check