msmbuilder.msm._ratematrix.build_ratemat

msmbuilder.msm._ratematrix.build_ratemat(theta, n, inds, out, which='K')

Build the reversible rate matrix K or symmetric rate matrix, S, from the free parameters, theta

Parameters:

theta : array

The free parameters, theta. These values are the linearized elements of the upper triangular portion of the symmetric rate matrix, S, followed by the log equilibrium weights.

n : int

Dimension of the rate matrix, K, (number of states)

which : {‘S’, ‘K’}

Whether to build the matrix S or the matrix K

out : [output], array shape=(n, n)

On exit, out contains the matrix K or S

Versions