Package jline.inference.api
Class Infer_fluid_ps_rt_likelihood
java.lang.Object
jline.inference.api.Infer_fluid_ps_rt_likelihood
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classResult of building the augmented fluid model for response time likelihood (MATLAB outputs ode_h, q_indices, augPhases, LIKE). -
Method Summary
Modifier and TypeMethodDescriptioninfer_fluid_ps_rt_likelihood(NetworkStruct sn, int taggedClass) Builds the augmented (M, K+1) fluid model and its ODE right-hand side through the fluid solver's own ODE system (PassageTimeODE, the port of solver_fluid_odes), so that phase-type service, every scheduling discipline and schedparam are handled as in MATLAB infer_fluid_ps_rt_likelihood.m.infer_fluid_ps_rt_likelihood(NetworkStruct sn, int taggedClass, Matrix y0Levels, double Rsampled) The four-argument MATLAB form: also integrates the augmented ODE from the given initial levels up to the sampled response time and returns the likelihood inInfer_fluid_ps_rt_likelihood.FluidPsRtResult.LIKE.static doubleinfer_fluid_ps_rt_solve(Infer_fluid_ps_rt_likelihood.FluidPsRtResult result, Matrix y0Levels, double Rsampled, int taggedClass) Integrates the augmented ODE from y0_levels, with one unit of tagged fluid moved into the tagged copy at the reference station, until the tagged fluid is depleted or Rsampled is reached; LIKE = -ode_h(t_end, y_end)(refTagIdx)/newFluid when the integration reaches Rsampled and 0 otherwise.
-
Method Details
-
infer_fluid_ps_rt_likelihood
public static Infer_fluid_ps_rt_likelihood.FluidPsRtResult infer_fluid_ps_rt_likelihood(NetworkStruct sn, int taggedClass) Builds the augmented (M, K+1) fluid model and its ODE right-hand side through the fluid solver's own ODE system (PassageTimeODE, the port of solver_fluid_odes), so that phase-type service, every scheduling discipline and schedparam are handled as in MATLAB infer_fluid_ps_rt_likelihood.m.- Parameters:
sn- network structuretaggedClass- tagged class (0-based)
-
infer_fluid_ps_rt_likelihood
public static Infer_fluid_ps_rt_likelihood.FluidPsRtResult infer_fluid_ps_rt_likelihood(NetworkStruct sn, int taggedClass, Matrix y0Levels, double Rsampled) The four-argument MATLAB form: also integrates the augmented ODE from the given initial levels up to the sampled response time and returns the likelihood inInfer_fluid_ps_rt_likelihood.FluidPsRtResult.LIKE.- Parameters:
y0Levels- (M x K) initial fluid levels per station and classRsampled- sampled response time
-
infer_fluid_ps_rt_solve
public static double infer_fluid_ps_rt_solve(Infer_fluid_ps_rt_likelihood.FluidPsRtResult result, Matrix y0Levels, double Rsampled, int taggedClass) Integrates the augmented ODE from y0_levels, with one unit of tagged fluid moved into the tagged copy at the reference station, until the tagged fluid is depleted or Rsampled is reached; LIKE = -ode_h(t_end, y_end)(refTagIdx)/newFluid when the integration reaches Rsampled and 0 otherwise.
-