A hydraulically-controlled stage-discharge relationship of one to three segments, with a log10-space normal residual likelihood.
Usage
model_rating_curve(
stage,
discharge,
segments = 1L,
parameters = NULL,
parameter_values = NULL,
use_default_flat_priors = NULL
)Arguments
- stage
numeric vector of stage observations.
- discharge
numeric vector of discharge observations, aligned with
stage.- segments
number of hydraulic control segments (1 to 3).
- parameters
optional
model_parameter()object or list of them, setting bounds, fixed flags, priors, or starting values.- parameter_values
optional numeric vector of all parameter values, applied last.
- use_default_flat_priors
logical; set
FALSEalongside a custom prior.