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

◆ speed() [1/6]

double MayaFlux::Kinesis::speed ( const Memory::HistoryBuffer< double > &  history,
double  dt 
)
inlinenoexcept

Absolute value of a scalar first difference.

Parameters
historyBuffer with capacity >= 2
dtElapsed time between samples 0 and 1
Returns
|velocity|, direction discarded

Definition at line 258 of file Differential.hpp.

259{
260 return std::abs(velocity(history, dt));
261}
T velocity(const Memory::HistoryBuffer< T > &history, double dt) noexcept
First difference: rate of change of position.

References velocity().

Referenced by speed(), speed(), and speed().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: