interpol {ptw}R Documentation

Linear interpolation

Description

This function calculates values at non-integer index positions by linear interpolation.

Usage

interpol(xout, y)

Arguments

xout points at which to compute interpolated values
y signal to be interpolated

Value

A vector of interpolated values. If any of the values of xout are outside the domain 1:length(y) the output will contain NA at those positions

Author(s)

Paul Eilers, Jan Gerretzen, Ron Wehrens

Examples

interpol(seq(23, 25, length = 20),10:50)
interpol(seq(23, 25, length = 20),5:50)

[Package ptw version 1.0-0 Index]