blurSignal: Blur an input signal

Description Usage Arguments Details See Also Examples

View source: R/makeFunctions.R

Description

An input signal is blurred by a set of functions to obtain a blurred multichannel signal.

Usage

1
blurSignal(signal, G)

Arguments

signal

A numeric vector of length n of the signal of interest

G

An n by m matrix of blur functions to be applied to the signal of interest.

Details

Applies the convolution operator to the signal of interest with each column of G to create a multichannel blurred signal. This operation is done in the Fourier domain using the base R fft transforms.

See Also

gammaBlur, boxcarBlur

Examples

1
2
3
4
5
6
7
8
9
n <- 1024
m <- 3
blur <- gammaBlur(n, shape = seq(from = 0.5, to = 1, length = m), scale = rep(0.25, m))
x <- (1:n)/n
signal <- makeLIDAR(n)
par(mfrow = c(2,1))
plot(x, signal, type = 'l', main = 'Direct LIDAR signal')
indirectSignal <- blurSignal(signal, blur)
matplot(x, indirectSignal, type = 'l', main = 'Set of blurred LIDAR signals')

mwaved documentation built on July 13, 2017, 5:03 p.m.