Class CdfRespTTwins

java.lang.Object
jline.examples.parity.CdfRespTTwins

public final class CdfRespTTwins extends Object
python/examples/advanced/cdfRespT/: the response-time CDF, not the mean.

Every entry reads its law off getCdfRespT, under the solver the reference uses -- SolverFluid for the analytical curve and SolverJMT for the simulated one. The mean and SCV are recomputed from the curve exactly as the reference does, sum_j (F_{j+1} - F_j) t_{j+1} and the same sum against t^2, so the codebases summarize the same object the same way.

WHAT THE PARSER READS is the labelled nested list, not the readable table beside it: parse_cdf_statistics keys on Average Response Time from CDF (<solver>): followed by a nested list, where (Simulation) names JMT, (Fluid) names FLD, and an unlabelled line is read as FLD. EVERY station is PRINTED, a Source included, because the reference loops over getNumberOfStations() and stores a zero where the law is empty.

WHAT IS RECORDED IS NOT INDEXED THE SAME WAY. The scraper that wrote the goldens read that printed matrix and, in _store_matrix, DROPPED every all-zero row before numbering what was left from 1, skipped any individual zero or NaN cell, and keyed the column by POSITION (Class<j+1>) rather than by the class's own name. So on an open model the golden's Station1 is the first station that has a law, not the Source, and a twin that records the raw station index files the Source's zeros under Station1 and shifts every real station one place down.

  • Method Details

    • tut08ResptCdf

      public static void tut08ResptCdf() throws Exception
      tut08_respt_cdf.py: one closed ring, its response-time CDF two ways.

      The golden holds the SIMULATED means and SCVs derived from the CDF; the fluid curve beside them is what the reference plots against.

      Throws:
      Exception
    • cdfResptClosed

      public static void cdfResptClosed() throws Exception
      Throws:
      Exception
    • cdfResptClosedThreeclasses

      public static void cdfResptClosedThreeclasses() throws Exception
      Throws:
      Exception
    • cdfResptDistrib

      public static void cdfResptDistrib() throws Exception
      Throws:
      Exception
    • cdfResptOpenTwoclasses

      public static void cdfResptOpenTwoclasses() throws Exception
      Throws:
      Exception
    • cdfResptPopulations

      public static void cdfResptPopulations() throws Exception
      cdf_respt_populations.py: the same ring at three populations.

      The ONE line the parity parser reads here is FLD getAvgRespT N=<k>: v1 v2 ... (parser.parse_direct_respt), the per-station fluid mean response time. The example's own CDF-derived means are a grid-dependent right-endpoint quadrature and are NOT comparable across codebases, which is why only the direct means are goldened.

      Throws:
      Exception