# Threshold calculation and windows

**URL:** <https://discourse.numenta.org/t/threshold-calculation-and-windows/9014>\
**Category:** NAB\
**Created:** [October 2, 2021, 8:12am UTC](https://discourse.numenta.org/t/threshold-calculation-and-windows/9014 "2021-10-02T08:12:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![markNZed](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@markNZed](https://discourse.numenta.org/u/markNZed)\
**Post date:** [October 2, 2021, 8:12am UTC](https://discourse.numenta.org/t/threshold-calculation-and-windows/9014/1 "2021-10-02T08:12:29Z")

</div>

In a given anomaly window only the first anomaly indication is counted. Is the threshold calculation taking this into acount ? I could not see that in the code after a quick look. It might impact the scores if the algorithm for finding the threshold is not accounting for early anomaly indications masking later anomaly indications in the same window.
