ESPHome  2024.11.2
Public Member Functions | Protected Attributes
esphome::sensor::CalibratePolynomialFilter Class Reference

#include <filter.h>

Inheritance diagram for esphome::sensor::CalibratePolynomialFilter:
esphome::sensor::Filter

Public Member Functions

 CalibratePolynomialFilter (std::vector< float > coefficients)
 
optional< float > new_value (float value) override
 
- Public Member Functions inherited from esphome::sensor::Filter
virtual void initialize (Sensor *parent, Filter *next)
 Initialize this filter, please note this can be called more than once. More...
 
void input (float value)
 
void output (float value)
 

Protected Attributes

std::vector< float > coefficients_
 
- Protected Attributes inherited from esphome::sensor::Filter
friend Sensor
 
Filternext_ {nullptr}
 
Sensorparent_ {nullptr}
 

Detailed Description

Definition at line 404 of file filter.h.

Constructor & Destructor Documentation

◆ CalibratePolynomialFilter()

esphome::sensor::CalibratePolynomialFilter::CalibratePolynomialFilter ( std::vector< float >  coefficients)
inline

Definition at line 406 of file filter.h.

Member Function Documentation

◆ new_value()

optional< float > esphome::sensor::CalibratePolynomialFilter::new_value ( float  value)
overridevirtual

Implements esphome::sensor::Filter.

Definition at line 434 of file filter.cpp.

Field Documentation

◆ coefficients_

std::vector<float> esphome::sensor::CalibratePolynomialFilter::coefficients_
protected

Definition at line 410 of file filter.h.


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