ESP-LiveControl  1.99.1
HTTP server, AJAX API backend and Vue.js web application implementing self-contained, zero-install WiFi remote control of hardware modules attached to the Espressif ESP32 SoC
Public Member Functions | Protected Attributes | List of all members
EquidistantPWLUInt16< N > Class Template Reference

Piecewise linear interpolation of look-up-table (LUT) values. More...

#include <adc_filter_interpolation.hpp>

Public Member Functions

 EquidistantPWLUInt16 (const std::array< float, N > &lut, uint16_t in_fsr_bot=0, uint16_t in_fsr_top=1)
 
void set_input_full_scale_range (uint16_t in_fsr_bot, uint16_t in_fsr_top)
 
float interpolate (uint16_t x)
 

Protected Attributes

const std::array< float, N > _lut
 
uint16_t _in_fsr_bot
 
uint16_t _in_fsr_top
 
float _in_fsr_inv
 

Detailed Description

template<size_t N>
class EquidistantPWLUInt16< N >

Piecewise linear interpolation of look-up-table (LUT) values.

LUT values representing function values starting with y(x=in_fsr_bot) and ending with y(x=in_fsr_top).

y-values of the LUT must correspond to equidistant X-axis points.

Version for uint16_t input value.


The documentation for this class was generated from the following file: