new_swdft_matching_demod {swdft}R Documentation

Constructor function for class 'swdft_matching_demod'

Description

Constructor function for class 'swdft_matching_demod'

Usage

new_swdft_matching_demod(x, n, fitted, thresh, max_cycles, smooth, order,
  passfreqs, maxvals, freqs, khats, amps, phases, demods, cycle, resids,
  fits, return_rows)

Arguments

x

numeric. Signal to demodulate

n

integer. Window size for SWDFT

fitted

fitted values

thresh

numeric. Threshold to determine whether to continue demodulating

max_cycles

maximum number of demodulation cycles

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

passfreqs

pass frequency used in each iteration

maxvals

Maximum SWDFT coefficient for each iteration

freqs

Frequencies used in each iteration

khats

Integer version of frequency.

amps

Instantaneous amplitude for each iteration

phases

Instantaneous phase for each iteration

demods

List of demodulated signal and smoothed demodulated signal for each iteration

cycle

Number of cycles used

resids

Residuals for each iteration

fits

Fitted values for each iteration

return_rows

Logical vector indicating which iterations occurred. Used for subsetting.

Value

list with the following elements


[Package swdft version 1.0.0 Index]