grad: grad

Description Usage

Description

Numerically calculate gradient at each point (x,y). The gradient at a point is calculated as the mean of the two gradients in either direction from the point, apart from at the ends of the vector where there is only a single value to consider.

Usage

1
grad(x = 1:length(y), y)

bobverity/bobFunctions documentation built on May 12, 2019, 11:29 p.m.