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

◆ excursion()

double MayaFlux::Kinesis::excursion ( std::span< const double >  values)
inlinenoexcept

Difference between the largest and smallest value in a window.

Parameters
valuesChronological span, non-empty
Returns
Range, or zero for an empty span

How much ground the value covered, ignoring how many times it covered it. Pairs with roughness: a large excursion with low roughness is one slow sweep, a small excursion with high roughness is a tremor, and both large is a sustained thrashing.

Definition at line 86 of file TemporalMeasures.hpp.

87{
88 if (values.empty())
89 return 0.0;
90 const auto [lo, hi] = std::ranges::minmax_element(values);
91 return *hi - *lo;
92}
std::vector< std::byte > values
Definition VDBWriter.cpp:26
float lo
float hi

References hi, lo, and values.