input_output_functions.check_stochasticity_input_matrix#

input_output_functions.check_stochasticity_input_matrix(initial_transition_matrix: ndarray) None#

Checks whether the initial transition matrix is stochastic or not.

Parameters:

initial_transition_matrix (np.ndarray) – The initial transition matrix.

Raises:

Exception – If it contains values larger than 1, smaller than 0 or the row sum is not equal to 1.