We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c501ad commit cb9465cCopy full SHA for cb9465c
packages/sensor_nowcast_aqi.yaml
@@ -221,7 +221,7 @@ script:
221
// Calculate the weight factor
222
float range = max - min;
223
float rate = range / max;
224
- float weight_factor = 1.0 - range;
+ float weight_factor = 1.0 - rate;
225
if (weight_factor < 0.5) {
226
weight_factor = 0.5;
227
} else if (weight_factor > 1.0) {
@@ -274,7 +274,7 @@ script:
274
275
276
277
278
279
280
0 commit comments