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

◆ central_first_derivative() [2/2]

template<typename T >
T MayaFlux::Kinesis::central_first_derivative ( std::span< const T >  samples,
double  dt 
)
inlinenoexcept

Convenience overload of central_first_derivative over a raw span.

Definition at line 602 of file Differential.hpp.

603{
604 return central_first_derivative(to_history(samples), dt);
605}
T central_first_derivative(const Memory::HistoryBuffer< T > &history, double dt) noexcept
Central difference approximation of the first derivative.
Memory::HistoryBuffer< T > to_history(std::span< const T > samples) noexcept
Build a HistoryBuffer<T> from a newest-first span.

References central_first_derivative(), and to_history().

+ Here is the call graph for this function: