interpolate_line: Interpolate new y-values using linear interpolation

View source: R/RcppExports.R

interpolate_lineR Documentation

Interpolate new y-values using linear interpolation

Description

Interpolate new y-values using linear interpolation

Usage

interpolate_line(x, y, new_x)

Arguments

x

A numeric vector with the x values of the original function.

y

A numeric vector with the y values of the original function. This should be the same length as x.

new_x

A numeric value providing the new x values at which you want to interpolate y values.

Value

A numeric vector with the interpolated values of y at each of the new x values provided by the new_x input.


geanders/stormwindmodel documentation built on Sept. 27, 2022, 6:47 a.m.