Expand description
Uncertainty Quantification (UQ) methods for physics simulation.
Provides:
- Monte Carlo uncertainty propagation
- Latin hypercube sampling (LHS)
- Sensitivity analysis (Sobol indices, Morris method)
- Polynomial chaos expansion (PCE)
- Stochastic collocation
- Gaussian process regression for UQ
- Reliability analysis (FORM / SORM)
- Bootstrap confidence intervals
- Bayesian inference via Metropolis-Hastings MCMC
- Probability of failure estimation
Structs§
- Collocation
Node - A collocation node (quadrature point + weight) for one dimension.
- Form
Result - Result of a FORM reliability analysis.
- Gaussian
Process Surrogate - A fitted Gaussian Process regression model.
- Latin
Hypercube Sample - A Latin Hypercube Sample: rows = samples, columns = dimensions.
- McUq
Result - Results from a Monte Carlo uncertainty propagation run.
- MhConfig
- Configuration for the Metropolis-Hastings sampler.
- MhResult
- Result of Metropolis-Hastings sampling.
- Morris
Result - Result of a Morris (elementary effects) sensitivity screening.
- Polynomial
Chaos Expansion - Polynomial Chaos Expansion surrogate model.
- Sobol
Indices - First-order and total-order Sobol sensitivity indices.
- Uncertain
Parameter - Description of a single uncertain input parameter.
Functions§
- bootstrap_
ci - Bootstrap percentile confidence interval for a statistic.
- coefficient_
of_ variation - Coefficient of variation CoV = σ / |μ|.
- delta_
sensitivity - Estimate the moment-independent delta sensitivity index for dimension
dim. - erf
- Error function (Horner’s method approximation).
- excess_
kurtosis - Excess kurtosis = E[(X−μ)⁴] / σ⁴ − 3.
- fit_gp
- Fit a Gaussian Process surrogate using exact GP regression.
- fit_pce
- Fit a PCE by non-intrusive (regression) approach using LHS-sampled training data.
- form_
analysis - First-Order Reliability Method (FORM) via Hasofer-Lind iteration.
- gauss_
hermite_ nodes - Gauss-Hermite quadrature nodes and weights for n-point rule.
- hermite_
poly - Computes the n-th Hermite polynomial He_n(x) (probabilists’ convention).
- importance_
sampling_ pf - Importance sampling estimate of P_f with a shifted Gaussian importance density.
- latin_
hypercube_ sample - Generate a Latin Hypercube Sample with
n_samplespoints inn_dimsdimensions. - mean
- Compute the mean of a slice of values.
- metropolis_
hastings - Metropolis-Hastings MCMC sampler.
- monte_
carlo_ propagation - Run Monte Carlo uncertainty propagation.
- morris_
sensitivity - Run the Morris method (elementary effects) for
n_dimsinputs. - normal_
cdf - Standard normal CDF (error function approximation).
- pce_
multi_ indices - Generate all multi-indices of total degree ≤
max_degreeforn_dimsdimensions. - percentile
- Sort a slice in-place and return the p-th percentile (linear interpolation).
- probability_
box - Compute a P-box (probability box) from a set of CDFs.
- probability_
of_ failure_ mc - Estimate the probability of failure P_f = P(g(X) ≤ 0) via crude Monte Carlo.
- probit
- Inverse CDF of the standard normal (rational approximation).
- rbf_
kernel - Squared-exponential (RBF) kernel: k(x, x’) = σ² exp(-‖x−x’‖² / (2ℓ²)).
- reliability_
index - Compute the reliability index β from a probability of failure estimate.
- scale_
lhs - Scale LHS samples from [0,1] to [low, high] for each dimension.
- skewness
- Skewness of a dataset = E[(X−μ)³] / σ³.
- sobol_
indices - Estimate Sobol sensitivity indices using the Saltelli (2010) estimator.
- sorm_
breitung - Second-Order Reliability Method (SORM) correction factor.
- std_dev
- Compute the standard deviation (population) of a slice.
- stochastic_
collocation - Compute mean and variance of a model via tensor-product stochastic collocation.
- variance
- Compute the variance (population) of a slice.