core / com.acmerobotics.roadrunner.util / MathUtil / numericalDerivative

numericalDerivative

fun numericalDerivative(x: List<Double>, y: List<Double>): List<Double>

Numerically compute dy/dx from the given x and y values. The returned list is padded to match the length of the original sequences.

Parameters

x - x-values

y - y-values

Return
derivative values