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

◆ acceleration() [2/2]

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

Convenience overload of acceleration over a raw span, samples[0] newest.

Definition at line 623 of file Differential.hpp.

624{
625 return acceleration(to_history(samples), dt);
626}
T acceleration(const Memory::HistoryBuffer< T > &history, double dt) noexcept
Second difference: rate of change of velocity.
Memory::HistoryBuffer< T > to_history(std::span< const T > samples) noexcept
Build a HistoryBuffer<T> from a newest-first span.

References acceleration(), and to_history().

+ Here is the call graph for this function: