AggregatedData = {
const thresh = Math.trunc((ConfidenceThreshold - 50) / 5)
return Array.from(d3.rollup(
d3.filter(Data, (d) => d[thresh + 1] >= DetectionThreshold),
(v) => ({
date: TimeInterval.floor(v[0][0]),
count: v.length,
}),
(d) => TimeInterval.floor(d[0])
), ([key, value]) => value )
}