You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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".