Skip to main content
. 2022 Mar 17;22(6):2321. doi: 10.3390/s22062321
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