log_lags: log_lags

View source: R/log_lags.R

log_lagsR Documentation

log_lags

Description

Generate lags or knots with logarithmic spacing. Lags/knots start at 0. Lags are in terms of samples. For example, if samples are taken every 60, a lag of 1 corresponds to 60 seconds, a lag of 4 would correspond to 240 seconds.

Usage

log_lags(n, max_time_lag)

Arguments

n

The total number of lags (integer)

max_time_lag

The maximum lag in number of samples (integer)

Value

An integer vector of lags

Examples

log_lags(12, 86400)

hydrorecipes documentation built on June 27, 2022, 9:06 a.m.