Learn R Programming

wasim (version 1.1.2)

max_rel_diff: 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)

Examples

Run this code
   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]))

Run the code above in your browser using DataLab