This function takes the gradient of f using finite differences
vector with N samples
scalar of time samples
g vecotr with N samples which is the gradient of f
out = gradient(simu_data$f[,1],mean(diff(simu_data$time)))
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.