|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
inlinenoexcept |
N-th order forward finite difference, expressed on a HistoryBuffer.
| N | Difference order |
| T | Sample type |
| history | Buffer with capacity >= N + 1 |
| dt | Elapsed time between consecutive samples |
Mathematically the forward and backward difference formulas are the same stencil read in opposite temporal direction. Since a HistoryBuffer only ever exposes past samples relative to [0], this computes the forward-difference coefficients but applied to the same available data as backward_difference. The two differ only for even N in sign convention on alternating terms; provided for callers whose downstream math was derived against forward-difference tables.
Definition at line 82 of file Differential.hpp.