Skip to contents

Computes the first derivative using centered differences, mirroring sfsmisc::D1tr.

Usage

derivative_cpp(x, gridpts, n_cores = 1L)

Arguments

x

Numeric Matrix (smoothed values)

gridpts

Grid points corresponding to columns of x

n_cores

Number of cores to use