Python API reference

Workflow

The HEC-FDA pipeline: stage-damage curves from a structure inventory, the seeded Monte Carlo EAD simulation, scenarios across impact areas, EqAD annualization, and with/without-project benefits.

stage_damage Stage-damage curves from a structure inventory (ported ImpactAreaStageDamage).
ead_simulation Seeded Monte Carlo expected annual damage (EAD) simulation.
scenario_results Compute a scenario (impact-area fan-out); returns a summary and a single-use handle.
alternative_ead Annualize a base/future scenario pair into EqAD alternative results.
alternative_comparison With/without-project damage-reduction benefits.
eqad Equivalent annual damage (EqAD) annualization (interpolate, present-value, PVIFA).

Distributions

Density, CDF, quantile, and seeded sampling for the 13 ported distribution families.

dist_pdf Probability density of distribution dist at x (scalar or sequence).
dist_cdf Cumulative probability of distribution dist at x (scalar or sequence).
dist_quantile Quantile (inverse CDF) of distribution dist at probability p (scalar or sequence).
dist_sample Draw n seeded samples from distribution dist.

Reproducibility

The .NET-compatible seeded generator shared by R, Python, and the upstream C#.

rng_sequence rng_sequence(seed: typing.SupportsInt | typing.SupportsIndex, n: typing.SupportsInt | typing.SupportsIndex) -> list[float]