calculatePhase: calculate peak phase

Description Usage Arguments See Also

View source: R/osciTools.R

Description

calculate phases via a Discrete Fourier Transformation, but starting at the first time point, such that phase 0/360 indicates peak at time 0, and phase 180 indicates peak at half of the cycle TODO: implement systematic phase error for time series that do not cover multiples of full cycles; phase error related to pi/resolution, see comments in testPhase

Usage

1
calculatePhase(x, cycles, degrees = TRUE)

Arguments

x

a time-series matrix with columns as time points, or a timeseries object as returned by processTimeseries

cycles

optional integer vector for the DFT components (number of cycles in the data) for which phases are to be calculated; all are returned if cycle is not specified

degrees

logical to indicate whether phases should be reported in degrees (0 - 360) or radians (0 - 2*pi)

See Also

get_fft and complex2degree


raim/segmenTools documentation built on Nov. 9, 2018, 5:38 p.m.