max_rel_diff {wasim}R Documentation

Calculate the maximum ration of the derivatives of two time series

Description

Calculate the maximum ration of the derivatives of two time series

Usage

max_rel_diff(x, y)

Arguments

x Modelled time series or array with dimension c(number_series, dim(y))
y Measured time series

Value

max(diff(x) / diff(y), na.rm=TRUE)

Author(s)

Dominik Reusser

See Also

diagnostic

Examples

   data(models_dawson,package="wasim")
   max_rel_diff(models_dawson[,1],models_dawson[,2])

   do.call(rbind,lapply(models_dawson, FUN =max_rel_diff, y=models_dawson[,1]))


[Package wasim version 1.0 Index]