gradient: Gradient using finite diferences

Description Usage Arguments Value Examples

View source: R/gradient.R

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)))

fdasrvf documentation built on May 30, 2017, 4:24 a.m.

Search within the fdasrvf package
Search all R packages, documentation and source code