interp_spline: Spline Curve Interpolation

Description Usage Arguments

View source: R/utility_general.R

Description

Interpolates out equally spaced values by fitting a cubic spline on given points and matching the endpoints. Often used to redefine a curve with warped time axis on an even time basis. Note that quality of interpolation decreases with inadequate density of defining points.

Usage

1
interp_spline(x, y, nout = length(y))

Arguments

x, y

coordinate vectors on which to fit a cubic spline.

nout

number of points to interpolate out


wzhorton/ramses documentation built on May 17, 2019, 1:03 p.m.