| gradient {fdasrvf} | R Documentation |
This function takes the gradient of f using finite differences
gradient(f, binsize)
f |
vector with N samples |
binsize |
scalar of time samples |
g vector with N samples which is the gradient of f
data("simu_data")
out = gradient(simu_data$f[,1],mean(diff(simu_data$time)))