conv.seq: Sequence convolution conv.seq calculates the convolution of...

Description Usage Arguments Value See Also Examples

View source: R/mint.R

Description

Sequence convolution conv.seq calculates the convolution of two sequences

Usage

1
conv.seq(x, y, real = TRUE)

Arguments

x,y

numeric vectors

real

logical value, indicating whether the result should be real valued

Value

a numeric vector of length equal to length(x)+length(y), giving the convolution of x and y

See Also

convolve

Examples

1
2
conv.seq(1:5,1:4)
convolve(1:5,4:1,type="open")

Example output

[1]  1  4 10 20 30 34 31 20
[1]  1  4 10 20 30 34 31 20

IHSEP documentation built on Aug. 16, 2021, 5:07 p.m.