lin_interpolation: Perform Linear Interpolation

View source: R/RcppExports.R

lin_interpolationR Documentation

Perform Linear Interpolation

Description

This function performs linear interpolation for a set of points.

Usage

lin_interpolation(xp, x0, x1, y0, y1)

Arguments

xp

A numeric vector of new x values at which to interpolate.

x0

A numeric vector of original x values (starting points for interpolation).

x1

A numeric vector of original x values (ending points for interpolation).

y0

A numeric vector of original y values corresponding to x0.

y1

A numeric vector of original y values corresponding to x1.

Value

A numeric vector of interpolated y values corresponding to xp.


ChristK/CKutils documentation built on April 11, 2025, 10:11 p.m.