Updates the global cluster statistics by combining the previous accumulated statistics (`upd`)
and the current batch statistics (`cur`). The quantities updated include batch duration, number of clusters,
number of anomalies, and the derived rates \(\lambda_c\) (cluster rate) and \(\lambda_a\) (anomaly rate).
Arguments
- upd
A list containing previous cumulative statistics (from `stat_anom()`), must contain `stats`.
- cur
A list containing statistics of the current batch (from `stat_anom()`), must contain `stats`.
Value
A list with a single element `stats`, containing:
- t_batch
Cumulative batch duration.
- N_cl
Cumulative number of detected clusters.
- N_anom
Cumulative number of detected anomalies.
- lambda_c
Updated cluster rate per second.
- lambda_a
Updated average anomaly count per cluster.