gradient_numeric: Get numeric gradient between points

View source: R/utils.R

gradient_numericR Documentation

Get numeric gradient between points

Description

Simple caluclation of gradient between points.

Usage

gradient_numeric(x, y)

Arguments

x

steps / independent variable

y

observed data points / response variable

Value

Matrix showing the gradient values between points. The x positions of gradient values are returned as the middle point between the steps. Note that nrow(gradient) = length(x)-1.


manuelbickel/textility documentation built on Nov. 25, 2022, 9:07 p.m.