taper: Compute the Function a(x; rho).

View source: R/tapered_estimator.R

taperR Documentation

Compute the Function a(x; \rho).

Description

This function repeatedly calls taper_single on all elements of a vector.

Usage

taper(x, rho, window_name, window_params = c(1), custom_window = FALSE)

Arguments

x

A vector of numbers between 0 and 1 (inclusive).

rho

A scale parameter in (0, 1].

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 FALSE.

Value

A vector of taper values.

Examples

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)

CovEsts documentation built on Sept. 10, 2025, 10:39 a.m.

Related to taper in CovEsts...