Skip to content

v0.1.16

Choose a tag to compare

@github-actions github-actions released this 26 Sep 11:48
· 26 commits to main since this release
3e36f15

Added

  • Experiment runner (#6): new Experiment(model) wraps a model factory (params, seed, replication) => metrics and runs it many times.
    • replicate(params, { replications, seed?, onProgress? }) returns a ReplicationResult with mean, stdDev, min, max, confidenceInterval, summary, table and toCSV.
    • sweep(space, options) runs the full factorial of a parameter space and returns a SweepResult with compare(metric), best(metric, 'min' | 'max') and toCSV().
    • Seeds are derived from the base seed with a hash (deriveSeed), so experiments are reproducible and adjacent replications are not correlated. Replication i uses the same seed in every scenario (common random numbers).
  • Example examples/experiment-mm1/: 30 replications of M/M/1 with a confidence interval next to the theoretical wait, and a server-count sweep.
  • README section "Running Experiments"; GUIDE section "One run is not an answer".