msmbuilder.msm_analysis.is_transition_matrix

msmbuilder.msm_analysis.is_transition_matrix(t_matrix, epsilon=1e-05)[source]

Check for row normalization of a matrix

Parameters:

t_matrix : densee or sparse matrix

epsilon : float, optional

threshold for how close the row sums need to be to 1

Returns:

truth : bool

True if the 2-norm of error in the row sums is less than Epsilon.

Versions