If no "trend reversal" is detected in the moving average of the histogram bin heights, then the first occurrence of moving average = 0 gets called the cutoff (m_kcutoff, a.k.a. k_c), otherwise all data gets used and nothing gets cut off. When a site with k < k_c enters the sliding window to the right such that some k2 < k_c suddenly gets its moving average raised to a sufficient height, there can be some k1 < k2 whose untouched MAxN is now lower than k2's MAxN by more than the threshold amount, so that k1 needs to become the new k_c and k2 needs to become the new m_kTrendReversal. findCutoff() needs to be called to check for this.
If no "trend reversal" is detected in the moving average of the histogram bin heights, then the first occurrence of moving average = 0 gets called the cutoff (m_kcutoff, a.k.a. k_c), otherwise all data gets used and nothing gets cut off. When a site with k < k_c enters the sliding window to the right such that some k2 < k_c suddenly gets its moving average raised to a sufficient height, there can be some k1 < k2 whose untouched MAxN is now lower than k2's MAxN by more than the threshold amount, so that k1 needs to become the new k_c and k2 needs to become the new m_kTrendReversal. findCutoff() needs to be called to check for this.