hamming: An unnormalized Hamming window function of specified size

Description Usage Arguments Details Value Author(s) Examples

View source: R/hamming.R

Description

Uses the formula from Wikipedia to calculate a Hamming window, symmetrical around its middle element

Usage

1

Arguments

N

the length of the output vector

Details

hamming(N) = 0.53836 - 0.46164 * cos(2 * pi * 0:(N - 1)/(N - 1))

Value

a vector of length N that holds the weights of a hamming window.

Author(s)

Benjamin N. Taft ben.taft@landmarkacoustics.com

Examples

1
2
3
4
5
6
7
8
9
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (N) 
{
    0.53836 - 0.46164 * cos(2 * pi * 0:(N - 1)/(N - 1))
  }

landmarkacoustics/SoundPoints-R documentation built on May 29, 2019, 9:14 a.m.