Converts a matrix of routed peak stages into a stage-frequency curve using the law of total probability across stratified bins. For each candidate stage, the conditional exceedance probability within each bin is weighted by the bin probability and summed to produce the unconditional annual exceedance probability (AEP).
Arguments
- peakStage
Matrix of peak stages
[Mevents x Nbins]from routing.- weights
Numeric vector of bin weights from
stratified_sampler(). Must have length equal toncol(peakStage).- stage_bins
Numeric value of exceedance stages used to compute stage-frequency in each bin. Default is 1000.