Compute the numerical derivative of functional data. Uses finite differences for fast computation via Rust.
Arguments
- fdataobj
An object of class 'fdata'.
- nderiv
Derivative order (1, 2, ...). Default is 1. For 2D data, only first-order derivatives are currently supported.
- method
Method for computing derivatives. Currently only "diff" (finite differences) is supported.
- class.out
Output class, either "fdata" or "fd". Default is "fdata".
- nbasis
Not used (for compatibility with fda.usc).
- ...
Additional arguments (ignored).
Value
For 1D data: an 'fdata' object containing the derivative values.
For 2D data: a list with components ds, dt, and dsdt,
each an 'fdata' object containing the respective partial derivative.