sincfilter: A function for sinc-interpolation

Description Usage Arguments Value Author(s) See Also Examples

View source: R/lmslicetime.R

Description

Performs sinc interpolation for a equidistant time series x to times t.

Usage

1
sincfilter(t, x, wr=8)

Arguments

t

vector of new time points

x

observed time series at times 1:length(x).

wr

determines truncation of series expansion

Value

a vector of interpolated values of the time series at time points given in t.

Author(s)

Joerg Polzehl polzehl@wias-berlin.de

See Also

slicetiming

Examples

1
2
3
4
5
  x <- 1:107
  y <- rnorm(x)
  z <- sincfilter(seq(1,107,.01),y)
  plot(x, y, ylim=range(y,z))
  lines(seq(1,107,.01),z,col=2)

neuroconductor/fmri documentation built on May 20, 2021, 4:28 p.m.