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

◆ order_keys()

void MayaFlux::Kinesis::Discrete::order_keys ( std::span< const double > values,
std::span< uint64_t > keys )
inlinenoexcept

Writes the order key of every value, stopping at the shorter span.

Definition at line 48 of file OrderKey.hpp.

49{
50 const size_t count = std::min(values.size(), keys.size());
51 for (size_t i = 0; i < count; ++i) {
52 keys[i] = order_key(values[i]);
53 }
54}
constexpr uint64_t order_key(double value) noexcept
The order key of a value.
Definition OrderKey.hpp:24
std::vector< double > count(std::span< const double > data, size_t n_windows, uint32_t hop_size, uint32_t window_size)
Sample count per window (as double for pipeline uniformity).
Definition Analysis.cpp:506

References count(), and order_key().

Here is the call graph for this function: