sinc {rdetools} | R Documentation |
Calculates (normalized) sinc values for each element of a vector/matrix/... etc.,
sinc(x) = sin(pi*x)/(pi*x), x != 0
If x = 0, sinc(x) is defined as 1 (removable singularity in zero).
sinc(X)
X |
an arbitrary vector/matrix/... containing numbers |
an vector/matrix/... of same size as the argument containing the sinc values for each element
Jan Saputra Mueller
http://en.wikipedia.org/wiki/Sinc_function
## calculate sinc values of a vector v <- 1:10 sinc(v)