Examples
Worked examples ported from the USACE-RMC Numerics-Python-Examples repository (0BSD licensed). Each example exists in a Python version (corehydropy, a Jupyter notebook you can download and run) and an R version (corehydror, a Quarto document). The pair uses the same seeds and prints the same numbers: both packages run the same compiled core with a bit-exact Mersenne Twister.
Every example ends with a reproduction check comparing this port’s results against the outputs embedded in the upstream notebooks, run by the original C# library. Where a result is seeded and deterministic the match is exact; where an example was recast onto this package’s API the check is statistical and says so. The coverage page lists every upstream example and its status here.
| # | Example | Python | R |
|---|---|---|---|
| 00 | Getting started | Python | R |
| 01 | Probability distributions | Python | R |
| 02 | Distribution fitting | Python | R |
| 03 | MCMC basics | Python | R |
| 04 | Bayesian inference | Python | R |
| 05 | Adaptive MCMC samplers | Python | R |
| 06 | MCMC diagnostics | Python | R |
| 09 | Statistics toolbox | Python | R |
| 20 | Bayesian regression | Python | R |
| 21 | Flood frequency analysis | Python | R |
| 22 | Reliability analysis | Python | R |
Numbers 00-09 mirror the upstream notebooks; 20-22 are the upstream’s three standalone scripts.