Skip to content

Commit 6d5b981

Browse files
committed
Deploying to gh-pages from @ f6eccf4 🚀
1 parent 1c5a3f2 commit 6d5b981

4 files changed

Lines changed: 40 additions & 31 deletions

File tree

articles/rfaR-Realization-Conceptual.html

Lines changed: 22 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

articles/rfaR-Realization-Conceptual.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ parameters drawn from the posterior.
2222

2323
This document walks through a single realization in detail.
2424
Understanding one realization is the key to understanding the full
25-
simulation: the outer loop simply repeats this process with a different
26-
parameter set each time. The walkthrough covers the stratified sampling
25+
simulation: the outer loop simply repeats this process with a resampled
26+
parameter set each time (in `rfaR`, this is the *next* parameter set
27+
from the input). The walkthrough covers the stratified sampling
2728
procedure, random sampling of starting stage and hydrograph shape, and
2829
calculation of stage exceedance probabilities — steps that are common to
2930
all simulation types. The full uncertainty simulation conducts 10,000
@@ -54,8 +55,9 @@ is comprised of 10,000 realizations. Each realization is compromised of
5455

5556
- Modified-Puls routings to obtain peak stages and/or peak discharge
5657

57-
The subsections below will step through an rfaR realization. These
58-
sections represent modules and functions contained in
58+
These module emulate the workflow and methodology from RMC-RFA. The
59+
subsections below will step through an rfaR realization. These sections
60+
represent modules and functions contained in
5961
[`rfa_simulate()`](https://ideal-broccoli-1q9y47z.pages.github.io/reference/rfa_simulate.md).
6062

6163
## Flow-Frequency Stratified Sampling
@@ -71,18 +73,18 @@ divided into `Nbins` equal-probability bins, and `Mevents` are sampled
7173
uniformly within each bin. This ensures the tail is well-represented
7274
without artificially inflating the total number of routing operations.
7375

74-
The bin weights (`ords$Weights`) reflect the true probability mass that
75-
each bin represents. These weights are applied later to reconstruct the
76-
true exceedance probability from the stratified sample, correcting for
77-
the fact that rare-event bins were intentionally oversampled relative to
78-
their actual frequency of occurrence.
79-
8076
``` r
8177
ords <- stratified_sampler(Nbins = 20,
8278
Mevents = 500,
8379
dist = "ev1")
8480
```
8581

82+
The bin weights (`ords$Weights`) reflect the true probability mass that
83+
each bin represents. These weights are applied later to reconstruct the
84+
true exceedance probability from the stratified sample, correcting for
85+
the fact that rare-event bins were intentionally oversampled relative to
86+
their actual frequency of occurrence.
87+
8688
### Construct a Probability Matrix from the Stratified Bins
8789

8890
The z-variate matrix translates each stratified sample into a standard
@@ -99,7 +101,7 @@ z_matrix <- matrix(ncol = ords$Nbins, nrow = ords$Mevents)
99101

100102
# Using EV1
101103
for (i in 1:ords$Nbins){
102-
# Lower Bin Boundary (prior bin's upper boundar)
104+
# Lower Bin Boundary (prior bin's upper boundary)
103105
bin_lower <- ords$Zlower[i]
104106

105107
# Upper Bin Boundary
@@ -121,7 +123,7 @@ inflow volume corresponds to a sample from the inflow volume-frequency
121123
distribution.
122124

123125
The parameter set used here (`meanlog`, `sdlog`, `skewlog`) represents a
124-
single draw from the posterior distribution of LP3 parameters — one
126+
single draw from the distribution of LP3 parameters — one posterior
125127
parameter set for this realization.
126128

127129
``` r
@@ -202,6 +204,8 @@ The shape of the flood hydrograph is sampled randomly from a selection
202204
of historical and synthetic hydrographs. Each hydrograph in the library
203205
is assigned a weight (default weights are uniform); the sampled shape is
204206
then scaled to match the flood volume drawn from the LP3 distribution.
207+
Note that the defined critical duration is 2-days (`critical_duration`)
208+
and the routing window has been set to 10-days (`routing_days`).
205209

206210
``` r
207211
hydrographs <- hydrograph_setup(jmd_hydro_apr1999,

pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ articles:
1111
validation-starting_stage: validation-starting_stage.html
1212
validation-stratified_sampler: validation-stratified_sampler.html
1313
validation-vfc_parameter_sets: validation-vfc_parameter_sets.html
14-
last_built: 2026-04-20T19:28Z
14+
last_built: 2026-04-20T20:18Z
1515
urls:
1616
reference: https://ideal-broccoli-1q9y47z.pages.github.io/reference
1717
article: https://ideal-broccoli-1q9y47z.pages.github.io/articles

search.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)