matinterp: Matrix Linear Interpolator

Description Usage Arguments Examples

Description

takes 2 matrices Y and Xi, and a grid x. x and Y are original function values on x and Xi are new points at which to evaluate the function. Linear Interpolation.

Usage

1
  matinterp(x, Y, Xi)

Arguments

x

grid on which Y=f(x) defined

Y

matrix of funciton values. each row is a different function defined on same grid.

Xi

matrix of new grid values at which to obtain Xi = f(Yi).

Examples

1
2
3
4
x <- seq(0,1,le=10)
Y <- log(outer(1:5,x,"+"))
Xi <- matrix(seq(0.1,0.99,le=12),5,12,byrow=T)
res <- matinterp(x,Y,Xi)

floswald/GSLtools documentation built on May 16, 2019, 1:23 p.m.