matflow.tests.subset_simulation.run_convergence#

matflow.tests.subset_simulation.run_convergence(converge_label, fixed_num, series, next_state, next_state_kwargs, mimic_matflow)#

Run a convergence test on the toy model subset simulation, for either number of samples per level, N, or number of repeats, R.

Parameters:
  • converge_label (str) – Either “N” (num samples) or “R” (num repeats)

  • fixed_num (int) – The size of the non-varying parameter (i.e. num_repeats if converge_label is “N”)

  • series (list[int]) – List of integers corresponding to the converge_label quantity

  • next_state – The callable to use to generate the next state

  • next_state_kwargs (dict) – Keyword arguments to pass to the next state callable.

  • mimic_matflow (bool) –