# sinc: Sinc Function In phonTools: Tools for Phonetic and Acoustic Analyses

## Description

Sample the sinc function at given points

## Usage

 `1` ```sinc (x, normalized = FALSE) ```

## Arguments

 `x` A vector of x-axis points at which the sinc function will be sampled. `normalized` If TRUE, a normalized sinc function is returned.

## Details

The formula for the unnormalized sinc function is y = sin(x)/x.

The formula for the normalized sinc function is y = sin(x*pi)/(x*pi).

## Value

A vector containing y-axis values for each specified x-axis value is returned.

## Author(s)

Santiago Barreda <sbarreda@ucdavis.edu>

## References

http://en.wikipedia.org/wiki/Sinc_function

Lyons, R. G. (2004). Understanding Digital Signal Processing (2nd ed.). Prentice Hall.

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10``` ```x = seq(-20,20,.1) ## generate both forms of the sinc function between -20 and 20 y1 = sinc (x) y2 = sinc (x, normalized = TRUE) ## the unnormalized sinc function has zero crossing at ## integer multiples of pi plot (x,y1, type = 'b') ## the normalized sinc function has zero crossing at integers lines (x,y2, type = 'b', col = 4) abline (h = 0) ```

phonTools documentation built on May 1, 2019, 6:26 p.m.