| Algorithm 4: an algorithm to calculate regression coefficient based on predicted AQI crisp value |
| Input: Q denotes the predicted crisp value of AQI. |
| Output: The regression coefficient (rc). |
| Begin |
| 1 if (Q >= 301) then |
| 2 rc = (Q - 301)/199 |
| 3 else if ((Q >= 201) and (Q <= 300)) then |
| 4 rc = (Q - 201)/99 |
| 5 else if ((Q >= 151) and (Q <= 200)) then |
| 6 rc = (Q - 151)/49 |
| 7 else if ((Q >= 101) and (Q <= 150)) then |
| 8 rc = (Q - 101)/49 |
| 9 else if ((Q >= 51) and (Q <= 100)) then |
| 10 rc = (Q - 51)/49 |
| 11 else if (Q <= 50) then |
| 12 rc = Q /49 |
| 13 return rc |
| End |