Package jline.api.mc
Class Dtmc_hitting_time
java.lang.Object
jline.api.mc.Dtmc_hitting_time
-
Method Summary
Modifier and TypeMethodDescriptionstatic Matrixdtmc_hitting_time(Matrix P, int[] targetStates) Mean number of steps to reach any target state from each state of a DTMC.
-
Method Details
-
dtmc_hitting_time
Mean number of steps to reach any target state from each state of a DTMC. Target states have zero hitting time; the others solve (I - P_NT) h_NT = 1 over the non-target block. Twin of the MATLAB dtmc_hitting_time and of the Python api.mc.dtmc_hitting_time; state indices are 0-based, as in the rest of the JAR.- Parameters:
P- transition matrixtargetStates- indices of the target states- Returns:
- column vector of mean hitting times, one entry per state
-