msmbuilder.tpt.calculate_mfpt¶
- msmbuilder.tpt.calculate_mfpt(sinks, tprob, lag_time=1.0)[source]¶
Gets the Mean First Passage Time (MFPT) for all states to a set of sinks.
Parameters: sinks : array, int
indices of the sink states
tprob : matrix
transition probability matrix
LagTime : float
the lag time used to create T (dictates units of the answer)
Returns: MFPT : array, float
MFPT in time units of LagTime, for each state (in order of state index)
See also
- calculate_all_to_all_mfpt
- function A more efficient way to calculate all the MFPTs in a network