input_output_functions.check_final_output#

input_output_functions.check_final_output(final_transition_matrix: ndarray, final_stationary_distribution: ndarray) None#

Checks whether the optimised transition matrix and corresponding stationary distribution are valid.

Parameters:
  • final_transition_matrix (np.ndarray) – The optimised transition matrix.

  • final_stationary_distribution (np.ndarray) – The optimised stationary distribution corresponding to the optimised transition matrix.

Raises:

Exception

  1. if the sum of the optimised stationary distribution is not equal to 1. 2. if the optimised stationary distribution contains values lower than 0 or larger than 1. 3. if the optimised transition matrix contains falues lower than 0 or larger than 1. 4. if the optimised transition matrix has at least one row sum that is not equal to 1.