fd: Forward Difference

View source: R/04_tools.R

fdR Documentation

Forward Difference

Description

Calculates the forward difference of a vector or matrix.

Usage

fd(x)

Arguments

x

numeric vector or matrix.

Details

The function is used internally in the Multigam distribution.

Value

an atomic vector or matrix of the same dimensions as x.


joker documentation built on June 8, 2025, 12:12 p.m.