MRPT
2.0.0
|
Declares a class within "CObservationGasSensors" that represents a set of gas concentration readings from the modelation of a MOS gas sensor readings.
This class provides the parameters and functions to simulate the inverse model of a MOS gas sensor.
Definition at line 83 of file CObservationGasSensors.h.
#include <mrpt/obs/CObservationGasSensors.h>
Classes | |
struct | TdataMap |
The content of each m_lastObservations in the estimation when using the option : MOS_MODEl (useMOSmodel =1) More... | |
Public Member Functions | |
bool | get_GasDistribution_estimation (float &reading, mrpt::system::TTimeStamp ×tamp) |
Obtain an estimation of the gas distribution based on raw sensor readings. More... | |
Public Attributes | |
MOS-model parameters | |
size_t | winNoise_size {30} |
The size of the mobile average window used to reduce noise on sensor reagings. More... | |
int | decimate_value {6} |
[useMOSmodel] The decimate frecuency applied after noise filtering More... | |
float | a_rise {0} |
tau = a*AMPLITUDE +b (linear relationship) More... | |
float | b_rise {0} |
tau = a*AMPLITUDE +b (linear relationship) More... | |
float | a_decay {0} |
tau = a*AMPLITUDE +b (linear relationship) More... | |
float | b_decay {0} |
tau = a*AMPLITUDE +b (linear relationship) More... | |
bool | save_maplog {false} |
If true save generated gas map as a log file. More... | |
Protected Member Functions | |
void | inverse_MOSmodeling (float reading, const mrpt::system::TTimeStamp ×tamp) |
Estimates the gas concentration based on readings and sensor model. More... | |
void | noise_filtering (float reading, const mrpt::system::TTimeStamp ×tamp) |
Reduce noise by averaging with a mobile window of specific size (winNoise_size) More... | |
void | save_log_map (const mrpt::system::TTimeStamp ×tamp, float reading, float estimation, float tau) |
Save the gas distribution estiamtion into a log file for offline representation. More... | |
Protected Attributes | |
TdataMap | last_Obs |
The content of each m_lastObservations in the estimation when using the option : MOS_MODEl (useMOSmodel =1) More... | |
TdataMap | temporal_Obs |
std::vector< TdataMap > | m_antiNoise_window |
Vector to temporally store and averge readings to reduce noise. More... | |
std::ofstream * | m_debug_dump {nullptr} |
Ofstream to save to file option "save_maplog". More... | |
uint16_t | decimate_count {1} |
Decimate value for oversampled enose readings. More... | |
double | fixed_incT {0} |
To force e-nose samples to have fixed time increments. More... | |
bool | first_incT {true} |
To force e-nose samples to have fixed time increments. More... | |
float | min_reading {10} |
Minimum reading value till the moment, used as approximation to baeline level. More... | |
bool | first_iteration {true} |
To avoid the model estimation on first iteration. More... | |
bool CObservationGasSensors::CMOSmodel::get_GasDistribution_estimation | ( | float & | reading, |
mrpt::system::TTimeStamp & | timestamp | ||
) |
Obtain an estimation of the gas distribution based on raw sensor readings.
Definition at line 159 of file CObservationGasSensors.cpp.
References mrpt::system::pause().
|
protected |
Estimates the gas concentration based on readings and sensor model.
Definition at line 246 of file CObservationGasSensors.cpp.
References mrpt::d2f(), and mrpt::system::timeDifference().
|
protected |
Reduce noise by averaging with a mobile window of specific size (winNoise_size)
Definition at line 204 of file CObservationGasSensors.cpp.
References mrpt::system::pause().
|
protected |
Save the gas distribution estiamtion into a log file for offline representation.
Definition at line 325 of file CObservationGasSensors.cpp.
References mrpt::format(), mrpt::system::os::sprintf(), and mrpt::system::timestampTotime_t().
float mrpt::obs::CObservationGasSensors::CMOSmodel::a_decay {0} |
tau = a*AMPLITUDE +b (linear relationship)
Definition at line 100 of file CObservationGasSensors.h.
float mrpt::obs::CObservationGasSensors::CMOSmodel::a_rise {0} |
tau = a*AMPLITUDE +b (linear relationship)
Definition at line 96 of file CObservationGasSensors.h.
float mrpt::obs::CObservationGasSensors::CMOSmodel::b_decay {0} |
tau = a*AMPLITUDE +b (linear relationship)
Definition at line 102 of file CObservationGasSensors.h.
float mrpt::obs::CObservationGasSensors::CMOSmodel::b_rise {0} |
tau = a*AMPLITUDE +b (linear relationship)
Definition at line 98 of file CObservationGasSensors.h.
|
protected |
Decimate value for oversampled enose readings.
Definition at line 140 of file CObservationGasSensors.h.
int mrpt::obs::CObservationGasSensors::CMOSmodel::decimate_value {6} |
[useMOSmodel] The decimate frecuency applied after noise filtering
Definition at line 93 of file CObservationGasSensors.h.
|
protected |
To force e-nose samples to have fixed time increments.
Definition at line 144 of file CObservationGasSensors.h.
|
protected |
To avoid the model estimation on first iteration.
Definition at line 149 of file CObservationGasSensors.h.
|
protected |
To force e-nose samples to have fixed time increments.
Definition at line 142 of file CObservationGasSensors.h.
|
protected |
The content of each m_lastObservations in the estimation when using the option : MOS_MODEl (useMOSmodel =1)
Definition at line 134 of file CObservationGasSensors.h.
|
protected |
Vector to temporally store and averge readings to reduce noise.
Definition at line 136 of file CObservationGasSensors.h.
|
protected |
Ofstream to save to file option "save_maplog".
Definition at line 138 of file CObservationGasSensors.h.
|
protected |
Minimum reading value till the moment, used as approximation to baeline level.
Definition at line 147 of file CObservationGasSensors.h.
bool mrpt::obs::CObservationGasSensors::CMOSmodel::save_maplog {false} |
If true save generated gas map as a log file.
Definition at line 105 of file CObservationGasSensors.h.
|
protected |
Definition at line 134 of file CObservationGasSensors.h.
size_t mrpt::obs::CObservationGasSensors::CMOSmodel::winNoise_size {30} |
The size of the mobile average window used to reduce noise on sensor reagings.
Definition at line 90 of file CObservationGasSensors.h.
Page generated by Doxygen 1.8.14 for MRPT 2.0.0 Git: b38439d21 Tue Mar 31 19:58:06 2020 +0200 at miƩ abr 1 00:50:30 CEST 2020 |