MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ central_second_derivative() [1/2]

template<typename T >
T MayaFlux::Kinesis::central_second_derivative ( const Memory::HistoryBuffer< T > &  history,
double  dt 
)
inlinenoexcept

Central difference approximation of the second derivative.

Template Parameters
TSample type
Parameters
historyBuffer with capacity >= 3
dtElapsed time between consecutive samples
Returns
(history[0] - 2*history[1] + history[2]) / dt^2

Identical stencil to acceleration() since the standard central second difference and backward second difference coincide at this order. Provided as a named alias so call sites documenting derivation against central-difference tables do not need to reach for acceleration().

Definition at line 136 of file Differential.hpp.

137{
138 return backward_difference<2>(history, dt);
139}

Referenced by central_second_derivative().

+ Here is the caller graph for this function: