Class Infer_fluid_ps_rt_likelihood

java.lang.Object
jline.inference.api.Infer_fluid_ps_rt_likelihood

public final class Infer_fluid_ps_rt_likelihood extends Object
  • 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 structure
      taggedClass - 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 in Infer_fluid_ps_rt_likelihood.FluidPsRtResult.LIKE.
      Parameters:
      y0Levels - (M x K) initial fluid levels per station and class
      Rsampled - 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.