ESPHome  2024.10.3
Public Member Functions | Protected Attributes
esphome::sensor::CalibrateLinearFilter Class Reference

#include <filter.h>

Inheritance diagram for esphome::sensor::CalibrateLinearFilter:
esphome::sensor::Filter

Public Member Functions

 CalibrateLinearFilter (std::vector< std::array< float, 3 >> linear_functions)
 
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< std::array< float, 3 > > linear_functions_
 
- Protected Attributes inherited from esphome::sensor::Filter
friend Sensor
 
Filternext_ {nullptr}
 
Sensorparent_ {nullptr}
 

Detailed Description

Definition at line 395 of file filter.h.

Constructor & Destructor Documentation

◆ CalibrateLinearFilter()

esphome::sensor::CalibrateLinearFilter::CalibrateLinearFilter ( std::vector< std::array< float, 3 >>  linear_functions)
inline

Definition at line 397 of file filter.h.

Member Function Documentation

◆ new_value()

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

Implements esphome::sensor::Filter.

Definition at line 425 of file filter.cpp.

Field Documentation

◆ linear_functions_

std::vector<std::array<float, 3> > esphome::sensor::CalibrateLinearFilter::linear_functions_
protected

Definition at line 402 of file filter.h.


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