Helper class for cacheing a window function in a lookup table.
More...
#include <marvin_Windows.h>
template<
marvin::FloatType SampleType, size_t NumPoints>
class marvin::math::windows::PrecomputedWindow< SampleType, NumPoints >
Helper class for cacheing a window function in a lookup table.
◆ PrecomputedWindow()
Constructs a PrecomputedWindow, from a preallocated array of points.
- Parameters
-
lut | A precomputed array containing the window function you want to store. |
◆ operator()()
Retrieves a sample a certain (0 to 1) proportion into the LUT. Will use linear interpolation between the existing points to achieve this.
- Parameters
-
proportion | A 0 to 1 propertion into the LUT. |
- Returns
- The (interpolated) sample in the window at the given proportion.
The documentation for this class was generated from the following file:
- /home/runner/work/mostly-harmless/mostly-harmless/modules/marvin/include/marvin/math/marvin_Windows.h