This function computes the stationary distribution corresponding to a transition probability matrix.
Arguments
- tpm
[
matrix()]
A transition probability matrix.- soft_fail
[
logical(1)]
Return the discrete uniform distribution if the computation of the stationary distribution fails (which is the case if the stationary distribution is not unique)? Else, throw an error.
See also
Other matrix helpers:
check_correlation_matrix(),
check_covariance_matrix(),
check_one_hot_matrix(),
check_transition_probability_matrix(),
cov_to_chol(),
diff_cov(),
insert_matrix_column(),
matrix_diagonal_indices(),
matrix_indices(),
sample_correlation_matrix(),
sample_covariance_matrix(),
sample_transition_probability_matrix()
