“…Aggregation functions, including simple aggregates (count, sum, average, minimum, maximum, etc.) or mathematical functions over event sequences (e.g., cross-correlation coefficients), are a vital foundation for defining and executing CEP business logic [60,72,75]. As indicated in Figure 6, faulty aggregation usually affects the business logic (e.g., when combining multiple correlated "item" events into a single "package" event in a warehouse [72]).…”