Learn R Programming

Overview

The swdft package implements the Sliding Window Discrete Fourier Transform (SWDFT), and provides some statistical methods and graphical tools based on the SWDFT.

Installation

# The swdft package is available on CRAN
install.packages("swdft")
# The development version is available on Github
# install.packages("devtools")
devtools::install_github("leerichardson/swdft/r/swdft")

See the vignette for an introduction.

Copy Link

Version

Install

install.packages('swdft')

Monthly Downloads

129

Version

1.0.0

License

MIT + file LICENSE

Maintainer

Lee F. Richardson

Last Published

April 17th, 2019

Functions in swdft (1.0.0)

demod_swdft

Demodulate a Fourier Frequency with the SWDFT
local_cosreg

Local cosine regression
sine

Sine signal with adjustable parameters
dirichlet

Dirichlet Kernel (Weight) for arbitrary summation indices
smooth_pgram

Smooth SWDFT coefficients with a convolution
cosreg

Cosine regression
cov_swdft_cnum

Covariance between two complex-numbered outputs
get_aphi

Extract amplitude and phase
cosine

Cosine signal with adjustable parameters
get_freq_range

Get range of frequencies to search
moving_average

Simple high pass filter
new_swdft

Constructor function for class 'swdft'
prou

The principal nth root of unity
residuals.swdft_mod

Residuals method for swdft_cosreg objects
get_loglik

Compute the log likelihood
get_max_freq

Get the maximum DFT coefficient
new_swdft_local_cosreg

Constructor function for class 'swdft_local_cosreg'
local_signal

Local Periodic Signal
dirichlet_kernel

Dirichlet Kernel
fitted.swdft_mod

Fitted values method for swdft_cosreg objects
cosine_taper

Cosine bell data taper
matching_demod

Matching Demodulation
new_swdft_matching_demod

Constructor function for class 'swdft_matching_demod'
plot.swdft

Plot method for 'swdft' object
get_sl

Extract signal parameters
new_swdft_cosreg

Constructor function for class swdft_mod
get_taper

Create taper for the SWDFT
smooth_swdft

Smooth the SWDFT coefficients
get_p_range

Get range of P's to search
swdft

Sliding Window Discrete Fourier Transform
new_swdft_demod

Constructor function for class 'swdft_demod'
get_sigma

Extract estimator of sigma
swdft_fftw

Sliding Window Discrete Fourier Transform using fftw
swdft_to_props

Convert the SWDFT to proportions of frequency
swdft3d

3D Sliding Window Discrete Fourier Transform
plot.swdft_mod

Plot method for swdft_mod object
swdft2d_fftw

2D Sliding Window Discrete Fourier Transform using fftw
new_swdft2d

Constructor function for class 'swdft2d'
swdft2d

2D Sliding Window Discrete Fourier Transform
swdft2d_fft

2D Sliding Window Discrete Fourier Transform using base R
new_swdft3d

Constructor function for class 'swdft3d'
swdft_base_3d

3D SWDFT using base R
swdft_fft

Sliding Window Discrete Fourier Transform with base R
unwrap_phase

Phase unwrapping
coefficients.swdft_mod

Coefficients method for swdft_cosreg objects
lcr_loglik

Log Likelihood
complex_demod

Complex Demodulation