Skip to contents

Triangular Hydrograph Distribution

Usage

hydist_tri(dst_peak, dst_baseflow, dst_when, duration = 1)

Arguments

dst_peak, dst_baseflow

Distributions of the peak and baseflow discharges. Baseflow distribution is possibly modified to ensure baseflow realizations are smaller than the peak discharge.

dst_when

Distribution of the timing of the peak; must return values between 0 and 1.

duration

How long is the event? Single positive numeric.

Value

Hydrograph distribution returning triangular hydrographs.

Examples

library(distionary)
h <- hydist_tri(
   dst_peak = dst_gev(100, 3, 0.1),
   dst_baseflow = dst_norm(50, 10^2),
   dst_when = dst_beta(20, 50),
   duration = 3 * 24
)
set.seed(42)
plot(h, n = 1000, ylim = c(30, 150))
plot(h, n = 1000, add = TRUE)