davidcarslaw / openair

Tools for air quality data analysis
https://davidcarslaw.github.io/openair/
GNU General Public License v2.0
305 stars 113 forks source link

Switch to Position-Based Percentile Calculation for Regulatory Compliance #395

Closed marcelooyaneder closed 2 months ago

marcelooyaneder commented 2 months ago

Description:

This pull request updates the percentile calculation method to be compliant with regulatory requirements. Previously, percentiles were calculated using interpolation, which could generate intermediate values. This method is not permitted for regulatory calculations.

With this update:

This change improves accuracy and ensures that the calculations align with the required standards for normative use.

Key Changes:

  1. Switched from interpolation-based percentile calculation to position-based calculation.
  2. Removed any logic that generates intermediate values.

Please review and let me know if any additional adjustments are needed.