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

◆ velocity() [2/2]

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

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

Definition at line 616 of file Differential.hpp.

617{
618 return velocity(to_history(samples), dt);
619}
T velocity(const Memory::HistoryBuffer< T > &history, double dt) noexcept
First difference: rate of change of position.
Memory::HistoryBuffer< T > to_history(std::span< const T > samples) noexcept
Build a HistoryBuffer<T> from a newest-first span.

References to_history(), and velocity().

+ Here is the call graph for this function: