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

◆ smoothed_velocity() [2/2]

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

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

Definition at line 658 of file Differential.hpp.

659{
660 return smoothed_velocity(to_history(samples), dt, window);
661}
T smoothed_velocity(const Memory::HistoryBuffer< T > &history, double dt, size_t window) noexcept
Velocity averaged over a short window rather than a single interval.
Memory::HistoryBuffer< T > to_history(std::span< const T > samples) noexcept
Build a HistoryBuffer<T> from a newest-first span.

References smoothed_velocity(), and to_history().

+ Here is the call graph for this function: