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)
x
: numeric. Signal to demodulaten
: integer. Window size for SWDFTfitted
: fitted valuesthresh
: numeric. Threshold to determine whether to continue demodulatingmax_cycles
: maximum number of demodulation cyclessmooth
: 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 5passfreqs
: pass frequency used in each iterationmaxvals
: Maximum SWDFT coefficient for each iterationfreqs
: Frequencies used in each iterationkhats
: Integer version of frequency.amps
: Instantaneous amplitude for each iterationphases
: Instantaneous phase for each iterationdemods
: List of demodulated signal and smoothed demodulated signal for each iterationcycle
: Number of cycles usedresids
: Residuals for each iterationfits
: Fitted values for each iterationreturn_rows
: Logical vector indicating which iterations occurred. Used for subsetting.list with the following elements
Useful links