mirror of
https://github.com/miguel5612/MQSensorsLib.git
synced 2025-06-08 23:00:12 +03:00
Updated add comment
This commit is contained in:
parent
a4ea39b2f4
commit
c67ceab56a
@ -88,6 +88,7 @@ void MQUnifiedsensor::update()
|
|||||||
}
|
}
|
||||||
float MQUnifiedsensor::calculatePPM(double ratio)
|
float MQUnifiedsensor::calculatePPM(double ratio)
|
||||||
{
|
{
|
||||||
|
//Usage of this function: Unit test on ALgorithmTester example;
|
||||||
if(_regressionMethod == "Exponential") _PPM= _a*pow(ratio, _b);
|
if(_regressionMethod == "Exponential") _PPM= _a*pow(ratio, _b);
|
||||||
if(_regressionMethod == "Linear") _PPM= _a*ratio + _b;
|
if(_regressionMethod == "Linear") _PPM= _a*ratio + _b;
|
||||||
return _PPM;
|
return _PPM;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user