Skip to contents

Constructor function for (event) hydrograph objects

Usage

new_hydrograph(fun, times, peak, ..., class = character())

Arguments

fun

Function of time that represents the hydrograph

times

Vector of length 2 indicating the start and end time of the event hydrograph (numeric).

peak

Magnitude of the peak discharge in the event hydrograph; single numeric.

...

Attributes to add.

class

If making a subclass, specify its name here.

Value

Object of class "hydrograph".