matching_demod {swdft}R Documentation

Matching Demodulation

Description

Matching Demodulation

Usage

matching_demod(x, n, thresh = 0.05, max_cycles = 5,
  smooth = "butterworth", order = 5, passfreq = 0.1, debug = FALSE)

Arguments

x

numeric. Signal to demodulate

n

integer. Window size for SWDFT

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

passfreq

numeric scalar. Pass frequency used in butterworth low-pass filter. defaults to .1

debug

Logical. Whether to print out intermediate output.

Value

An S3 'swdft_matching_demod' object. See ?new_swdft_matching_demod for details.


[Package swdft version 1.0.0 Index]