g.downsample: Downsample a vector of numeric values at three time...

Description Usage Arguments Value Author(s) Examples

View source: R/g.downsample.R

Description

Downsamples a vector of numeric values at three time resolutions: 1 seconds, ws3 seconds, and ws2 second. Function is not intended for direct interaction by package end user

Usage

1
  g.downsample(sig,fs,ws3,ws2)	

Arguments

sig

Vector of numeric values

fs

Sample frequency

ws3

ws3 epoch size, e.g. 5 seconds

ws2

ws2 epoch size, e.g. 90 seconds

Value

List with three object: var1, var2, and var3 corresponding to downsample time series at 1 seconds, ws2 seconds, and ws3 seconds resoluton, respectively

Author(s)

Vincent T van Hees <vincentvanhees@gmail.com>

Examples

1
2
  sig = runif(n=10000,min=1,max=10)
 downsampled_sig = g.downsample(sig,fs=20,ws3=5,ws2=15)

PeteJWatson/ggircal documentation built on Nov. 24, 2021, 11:14 a.m.