Skip to main content
. 2019 Jul 5;19(13):2981. doi: 10.3390/s19132981
Algorithm A1 hist_amount pruning method
pruned ← 0 ▹ set the number of pruned weights to 0
i ← 0 ▹ used for bins indexing
while pruned < fhist_amount · size (W) do pruned is lower than the threshold
   for all wBi do ▹ set all the weights in the bin Bi to 0
     w ← 0
   end for
   prunedpruned + size (Bi) ▹ update the pruned weights amount
   ii + 1
end while