ker: FT of product kernels

Description Usage Arguments Examples

Description

It computes the Fourier transform of several kernels with support in -1 to 1.

Usage

1

Arguments

t

d-dimensional vector to evaluate the FT.

kernel

Value from 1 to 5. 1, sinc kernel; 2, VP kernel; 3, kernel whose FT is prop. to triweight kernel; 4, kernel whose FT is prop. to Tricube kernel, and 5, flat-top kernel.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
library(mvdeconvolution)
library(reshape2)
library(ggplot2)

## Example for the univariate case
## Plot all the possible kernels
t <- seq(-1.2, 1.2, length.out = 150)
sinc <- sapply(t, ker, 1)
VP <- sapply(t, ker, 2)
triw <- sapply(t, ker, 3)
tric <- sapply(t, ker, 4)
flat <- sapply(t, ker, 5)

## ## Plot. Uncomment code below
## df <- data.frame(t, sinc, VP, triw, tric, flat)
## df.molten <- melt(df, id = "t", variable.name = "kernel")
## qplot(t, value, data = df.molten,
##       geom = "line", colour = kernel)

gbasulto/mvdeconvolution documentation built on May 16, 2019, 10:11 p.m.