Package jline.api.mc

Class Dtmc_hitting_time

java.lang.Object
jline.api.mc.Dtmc_hitting_time

public final class Dtmc_hitting_time extends Object
  • Method Details

    • dtmc_hitting_time

      public static Matrix dtmc_hitting_time(Matrix P, int[] targetStates)
      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 matrix
      targetStates - indices of the target states
      Returns:
      column vector of mean hitting times, one entry per state