diff --git a/src/nupic/algorithms/anomaly_likelihood.py b/src/nupic/algorithms/anomaly_likelihood.py index 0f8e6966ae..38de7c8a93 100644 --- a/src/nupic/algorithms/anomaly_likelihood.py +++ b/src/nupic/algorithms/anomaly_likelihood.py @@ -631,7 +631,7 @@ def _filterLikelihoods(likelihoods, if v <= redThreshold: # Value is in the redzone - if likelihoods[i] > redThreshold: + if likelihoods[i-1] > redThreshold: # Previous value is not in redzone, so leave as-is filteredLikelihoods.append(v) else: