| Algorithm A3: Activity Score Calculation. |
| Data: hour_filtered_dataset, window_size, threshold, area_value Result: score activit ← 0; nt ← number_of_rows (hour_dataset); for i in range(0,nt) do A ← hour_dataset[i]; A ← LogicalMatrix(A where values(A) threshold); if largestRegion(A) ≥ area_value then activity ← activity + 1; end. end. if nt equal to 0 then score ← 0; else score ← (activity/nt) × 100; end |