Package jline.api.mc
Class Ctmc_transient
java.lang.Object
jline.api.mc.Ctmc_transient
-
Method Summary
Modifier and TypeMethodDescriptionctmc_transient(Matrix Q, double t1) ctmc_transient(Matrix Q, Matrix pi0, double t1) ctmc_transient(Matrix Q, Matrix pi0, double t0, double t1) ctmc_transient(Matrix Q, Matrix pi0, double t0, double t1, Double timestep) 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).
-
Method Details
-
ctmc_transient
-
ctmc_transient
-
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).stifftrue keeps the LSODA integration above (MATLAB uses ode15s there, so the two agree only to the looser tolerance).stifffalse 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 ont0:timestep:t1through 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- generatorpi0- initial distribution (row vector)t0- initial timet1- final timetimestep- output step, or null for the integrator's own stepsstiff- the reference's useStiff- Returns:
- the time points and pi at each
-
ctmc_transient
-
ctmc_transient
-