.. (לתיקייה המכילה) | ||
In the function AverageTemp, do we need to take the average over the number of latitudes - that is, sum all the measured temperatures in the requested interval and divide it by the number of latitudes in that interval, OR, do we need to take the average over the number of sensors - that is, sum all the temperatures in the interval and divide it by the number of sensors in the interval? | |
The second option is the correct one. The average should be taken over the number of sensors in the requested interval, without considering the number of latitudes in that interval. |
In the function AverageTemp and MaxTemp, if there are no sensors on latitude1 or latitude2, should these functions return error? | |
No. As long as there exists at least a single sensor on a latitude between latitude1 and latitude2 (including), these function should return a legal value. |