calc_linear_coefs: Calculate coefficients for linear interpolation

View source: R/RcppExports.R

calc_linear_coefsR Documentation

Calculate coefficients for linear interpolation

Description

Calculate coefficients for linear interpolation

Usage

calc_linear_coefs(x, y)

Arguments

x

A numeric vector with independent values of the original function.

y

A numeric vector with dependent values of the original function.

Value

A numeric vector with slope coefficients for the linear interpolation of the original function. This vector has a length one less that the input vectors. The slope is for the section starting at that location in the x input vector.


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