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)))
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.