Package jline.api.mc

Class Ctmc_transient

java.lang.Object
jline.api.mc.Ctmc_transient

public final class Ctmc_transient extends Object
  • Method Details

    • ctmc_transient

      public static Pair<double[],List<double[]>> ctmc_transient(Matrix Q, Matrix pi0, double t0, double t1)
    • ctmc_transient

      public static Pair<double[],List<double[]>> ctmc_transient(Matrix Q, Matrix pi0, double t0, double t1, Double timestep)
    • ctmc_transient

      public static Pair<double[],List<double[]>> ctmc_transient(Matrix Q, Matrix pi0, double t0, double t1, Double timestep, boolean stiff)
      The reference's full signature, ctmc_transient(Q,pi0,t0,t1,useStiff,[],timestep).

      stiff true keeps the LSODA integration above (MATLAB uses ode15s there, so the two agree only to the looser tolerance). stiff false is MATLAB's ode23 branch, reproduced step for step: the Bogacki-Shampine 3(2) pair with MATLAB's initial-step rule, step controller and default tolerances (RelTol 1e-3, AbsTol 1e-6, MaxStep a tenth of the horizon), reported on the integrator's own accepted steps, or on t0:timestep:t1 through ode23's dense output (the cubic Hermite interpolant with the exact derivative pi Q) when a timestep is given. Same algorithm as the C++ detail::ode23. A horizon ending at Inf is cut at 100 events of the slowest rate, as the reference does.

      Parameters:
      Q - generator
      pi0 - initial distribution (row vector)
      t0 - initial time
      t1 - final time
      timestep - output step, or null for the integrator's own steps
      stiff - the reference's useStiff
      Returns:
      the time points and pi at each
    • ctmc_transient

      public static Pair<double[],List<double[]>> ctmc_transient(Matrix Q, Matrix pi0, double t1)
    • ctmc_transient

      public static Pair<double[],List<double[]>> ctmc_transient(Matrix Q, double t1)