bohmanwin: Bohman window

View source: R/bohmanwin.R

bohmanwinR Documentation

Bohman window

Description

Return the filter coefficients of a Bohman window.

Usage

bohmanwin(n)

Arguments

n

Window length, specified as a positive integer.

Details

A Bohman window is the convolution of two half-duration cosine lobes. In the time domain, it is the product of a triangular window and a single cycle of a cosine with a term added to set the first derivative to zero at the boundary.

Value

Bohman window, returned as a vector. If you specify a one-point window (n = 1), the value 1 is returned.

Author(s)

Sylvain Pelissier, sylvain.pelissier@gmail.com.
Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.

See Also

triang

Examples


b <- bohmanwin(64)
plot (b, type = "l", xlab = "Samples", ylab =" Amplitude")


gjmvanboxtel/gsignal documentation built on Nov. 22, 2023, 8:19 p.m.