Learn R Programming

rbbnp (version 0.3.0)

plot_ft: Plot the Fourier Transform

Description

Plot the Fourier Transform of the

Usage

plot_ft(X, xi_interval, ft_plot.resol = 500)

Value

A ggplot object representing the plot of the Fourier transform.

Arguments

X

A numerical vector of sample data.

xi_interval

A list containing the lower (xi_lb) and upper (xi_ub) bounds of the xi interval.

ft_plot.resol

An integer representing the resolution of the plot, specifically the number of points used to represent the Fourier transform. Defaults to 500.

Details

C = 1, the parameter in \(O(1/n^{0.25})\), see more details in in Schennach (2020).

Examples

Run this code
plot_ft(
  sample_data$X,
  xi_interval = list(xi_lb = 1, xi_ub = 50),
  ft_plot.resol = 1000
)

Run the code above in your browser using DataLab