#include <aqi_calculator.h>
|
| uint16_t | get_aqi (float pm2_5_value, float pm10_0_value) override |
| |
|
| static constexpr int | NUM_LEVELS = 6 |
| |
| static constexpr int | INDEX_GRID [NUM_LEVELS][2] = {{0, 50}, {51, 100}, {101, 150}, {151, 200}, {201, 300}, {301, 500}} |
| |
| static constexpr float | PM2_5_GRID [NUM_LEVELS][2] |
| |
| static constexpr float | PM10_0_GRID [NUM_LEVELS][2] |
| |
Definition at line 11 of file aqi_calculator.h.
◆ calculate_index()
| static float esphome::aqi::AQICalculator::calculate_index |
( |
float | value, |
|
|
const float | array[NUM_LEVELS][2] ) |
|
inlinestaticprotected |
◆ get_aqi()
| uint16_t esphome::aqi::AQICalculator::get_aqi |
( |
float | pm2_5_value, |
|
|
float | pm10_0_value ) |
|
inlineoverridevirtual |
◆ get_grid_index()
| static int esphome::aqi::AQICalculator::get_grid_index |
( |
float | value, |
|
|
const float | array[NUM_LEVELS][2] ) |
|
inlinestaticprotected |
◆ INDEX_GRID
| int esphome::aqi::AQICalculator::INDEX_GRID[NUM_LEVELS][2] = {{0, 50}, {51, 100}, {101, 150}, {151, 200}, {201, 300}, {301, 500}} |
|
staticconstexprprotected |
◆ NUM_LEVELS
| int esphome::aqi::AQICalculator::NUM_LEVELS = 6 |
|
staticconstexprprotected |
◆ PM10_0_GRID
| float esphome::aqi::AQICalculator::PM10_0_GRID[NUM_LEVELS][2] |
|
staticconstexprprotected |
Initial value:= {{0.0f, 54.0f}, {55.0f, 154.0f},
{155.0f, 254.0f}, {255.0f, 354.0f},
{355.0f, 424.0f}, {425.0f, std::numeric_limits<float>::max()}}
Definition at line 29 of file aqi_calculator.h.
◆ PM2_5_GRID
| float esphome::aqi::AQICalculator::PM2_5_GRID[NUM_LEVELS][2] |
|
staticconstexprprotected |
Initial value:= {{0.0f, 9.0f}, {9.1f, 35.4f},
{35.5f, 55.4f}, {55.5f, 125.4f},
{125.5f, 225.4f}, {225.5f, std::numeric_limits<float>::max()}}
Definition at line 25 of file aqi_calculator.h.
The documentation for this class was generated from the following file: