Description Usage Arguments Details Value Author(s) References Examples

Sample the sinc function at given points

1 |

`x` |
A vector of x-axis points at which the sinc function will be sampled. |

`normalized` |
If TRUE, a normalized sinc function is returned. |

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

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

Santiago Barreda <[email protected]>

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

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

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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.