finite_deriv: Find the numerical derivative of a finite set of points.

View source: R/rapt_K3metrics.R View source: R/features.R

finite_derivR Documentation

Find the numerical derivative of a finite set of points.

Description

Uses the central difference method to calculate the numerical derivative for a set of x,y data. Vectors x and y must be the same length.

Uses the central difference method to calculate the numerical derivative for a set of x,y data. Vectors x and y must be the same length.

Usage

finite_deriv(x, y)

finite_deriv(x, y)

Arguments

x

The x values for your set of points.

y

The y vales for your set of points.

Value

A vector with the same length as x containing estimated derivative at each x value.

A vector with the same length as x containing estimated derivative at each x value.


aproudian2/rapt documentation built on Dec. 15, 2022, 4:24 a.m.