airq-dev / hazebot

Building the 411 for air quality in the United States: a texting platform accessible to all, that provides actionable local information to protect your and your community.
https://www.hazebot.org/
MIT License
9 stars 1 forks source link

Weight readings by distance #123

Open ianhoffman opened 4 years ago

ianhoffman commented 4 years ago

When calculating the estimated AQI of a zipcode, we can do better than taking the average of all sensors within n km if we instead "weight" the reading of each sensor by its distance from the zipcode centroid.

Caveat: I'm not exactly sure how to do this. But it seems doable.