Constructor function for class 'swdft_matching_demod'
new_swdft_matching_demod(x, n, fitted, thresh, max_cycles, smooth, order,
passfreqs, maxvals, freqs, khats, amps, phases, demods, cycle, resids,
fits, return_rows)
numeric. Signal to demodulate
integer. Window size for SWDFT
fitted values
numeric. Threshold to determine whether to continue demodulating
maximum number of demodulation cycles
character. Type of smoothing to use, accepts either 'ma', 'double_ma', or 'butterworth' (the default)
moving average parameter if 'smooth' argument equals 'ma' or 'double_ma'. Defaults to 5
pass frequency used in each iteration
Maximum SWDFT coefficient for each iteration
Frequencies used in each iteration
Integer version of frequency.
Instantaneous amplitude for each iteration
Instantaneous phase for each iteration
List of demodulated signal and smoothed demodulated signal for each iteration
Number of cycles used
Residuals for each iteration
Fitted values for each iteration
Logical vector indicating which iterations occurred. Used for subsetting.
list with the following elements
coefficients. coefficients from the R local signals with time-varying amplitude and phase model.
fitted. fitted values of cosine regression model
residuals. residuals of cosine regression model
data. original signal used to fit cosine regression
smooth. list with the filter used ('smooth') and parameters ('order' for 'ma' or 'double_ma', 'passfreq' for butterworth)
demod. list w/ the demodulated signal, and smoothed demodulated signal
thresh. Threshold used.
iterations. List of fits, residuals, and maximum values for each iteration