paraSpline: Parametric Spline

View source: R/paraSpline.R

paraSplineR Documentation

Parametric Spline

Description

Constructs a parametric interpolating spline for x and y data. The x data are not required to be strictly increasing. Used as a support function.

Usage

paraSpline(x, y, n)

Arguments

x

the x-coordinate data. Missing values are not permitted.

y

the y-coordinate data. Missing values are not permitted.

n

The number of points in the output parametric spline fit.

Value

A list containing the components x and y, which are the coordinates of the parametric spline.

Examples

paraSpline(c(1,2,3), c(0,1,0), n=5)

USGS-R/smwrGraphs documentation built on Oct. 11, 2022, 6:11 a.m.