twCalcObsScale: twCalcObsScale

Description Usage Arguments Details Value Author(s)

View source: R/odeUtil.R

Description

Calculate mean slopes, i.e. rates, between within time intervals.

Usage

1
2
twCalcObsScale(dx, times1 = NULL, times2 = NULL, na.rm = TRUE, 
    doSort = TRUE)

Arguments

dx

numeric vector: slopes at time points times

times1
times2
na.rm

can be set to FALSE for performance reasons

doSort

can be set to FALSE for performance reasons

Details

Calculate the derivative for next intervals (mean of the two borders). At the end of times1 it corresponds to the slope at last time point.

Value

list with components

oneSided

slope within the interval (i,i+1)

int

same for intervals times2 (NULL if either times1 or times2 was NULL)

Author(s)

Thomas Wutzler


twMisc documentation built on May 2, 2019, 6:11 p.m.