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

◆ table_lookup()

MAYAFLUX_API double MayaFlux::Kinesis::Discrete::table_lookup ( std::span< const double >  window,
std::span< const double >  coefs 
)
noexcept

Transfer table indexed by the current value.

coefs are samples of a curve over [-1, 1], read with linear interpolation and clamped at the ends. The input is window[0]. A table of one entry is a constant; an empty table gives zero.

Definition at line 146 of file Kernels.cpp.

147{
148 return interpolate_table(coefs, window.empty() ? 0.0 : window.front());
149}
std::weak_ptr< Core::Window > window
Definition Picker.cpp:23

References window.