View source: R/tapered_estimator.R
taper | R Documentation |
a(x; \rho).
This function repeatedly calls taper_single on all elements of a vector.
taper(x, rho, window_name, window_params = c(1), custom_window = FALSE)
x |
A vector of numbers between 0 and 1 (inclusive). |
rho |
A scale parameter in |
window_name |
The name of the window function to be used. Possible values are: tukey, triangular, power_sine, blackman_window, hann_poisson, welch. Alternatively, a custom window function can be provided, see the example. |
window_params |
A vector of parameters of the window function. |
custom_window |
If a custom window is to be used or not. Defaults to |
A vector of taper values.
X <- c(0.1, 0.2, 0.3)
taper(X, 0.5, "tukey")
curve(taper(x, 1, "tukey"), from = 0, to = 1)
curve(taper(x, 1, "power_sine", c(4)), from = 0, to = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.