Gradient using finite diferences

Share:

Description

This function takes the gradient of f using finite differences

Usage

1
gradient(f, binsize)

Arguments

f

vector with N samples

binsize

scalar of time samples

Value

g vecotr with N samples which is the gradient of f

Examples

1
2
data("simu_data")
out = gradient(simu_data$f[,1],mean(diff(simu_data$time)))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.