peakdiff | R Documentation |
Calculate the peak difference of two hydrographs.
peakdiff(sim, obs, timesteps, width = 12, FUN = me, nop = 5, ...)
sim |
xts object. The simulated hydrograph. |
obs |
xts object. The observed hydrograph. |
timesteps |
numeric. How many timesteps should be considered (equal distributed around the observed peak)? |
width |
numeric. Number of timesteps on eighter side of the peak that must be smaller than the peak. Corresponds to paramteter m in |
FUN |
function. Objective function to be calculated whitin the region of the peak(s). |
nop |
integer. Number of peaks being evaluated. |
... |
additional arguments passed to FUN |
FUN should be a function that can operate with sim and obs values and returns one single value.
Peaks are detected in obs only!
a vector with the results of the objective function
Simon Frey
find_peaks
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.