matflow.tests.subset_simulation#

Module containing functions to run a subset simulation on a simple toy model, used as a validation of the MatFlow implementation.

Functions

estimate_cov

Estimate the coefficient of variation at a given conditional level of the subset simulation.

generate_next_state

generate_next_state_ACS

generate_next_state_CS

get_stats

get_toy_model_results_from_matflow_workflows

param root_path:

A directory containing only (zipped) workflows that are toy-model subset

get_y_star

model

plot_cov_dist

plot_cov_estimates

plot_pf_dist

plot_pf_num_samples

run_convergence

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

run_repeats

sample_direct_MC

subset_simulation

system_analysis_toy_model

x is within the failure domain if the return is greater than zero.