new_swdft_demod: Constructor function for class 'swdft_demod'

Description Usage Arguments Value

View source: R/demod.R

Description

Constructor function for class 'swdft_demod'

Usage

1
2
new_swdft_demod(x, f0, A_t, Phi_t, fitted, y, y_smooth, smooth, order,
  passfreq)

Arguments

x

numeric vector

f0

numeric scalar. Frequency to demodulate

A_t

extracted amplitude from y_smooth

Phi_t

extracted phase from y_smooth

fitted

fitted values

y

non-smoothed demodulated signal

y_smooth

smoothed demodulated signal

smooth

character. Type of smoothing to use, accepts either 'ma', 'double_ma', or 'butterworth' (the default)

order

moving average parameter if 'smooth' argument equals 'ma' or 'double_ma'. Defaults to 5

passfreq

numeric frequency used as the passfreq in the low-pass filter

Value

list with the following elements


swdft documentation built on May 2, 2019, 2:27 a.m.