How can I quickly count all the boolean transitions in a large array, i.e. something like 2,500 elements. The array is the result of a boolean "greater than?" comparison, and I am trying to find out how many times the signal exceeded the upper limit. Thanks!
I need to do this on 32 channels, of 2,500 samples, five times per second. I'm worried about performance issues if I need to explicitly execute a for loop this many times in quick sucession.