PlainAggregator#
- class ctapipe.monitoring.PlainAggregator(*args: t.Any, **kwargs: t.Any)[source]#
Bases:
StatisticsAggregatorCompute aggregated statistic values from a chunk of event-wise data using numpy functions.
Works with any N-dimensional event-wise data by aggregating along axis=0 (event dimension).
Methods Summary
compute_stats(data, masked_elements_of_sample)Compute aggregated statistics for a chunk of data.
Methods Documentation
- compute_stats(data, masked_elements_of_sample) ChunkStatisticsContainer[source]#
Compute aggregated statistics for a chunk of data.
- Parameters:
- datandarray
Event-wise data of shape (n_events, *data_dimensions)
- masked_elements_of_samplendarray, optional
Boolean mask of shape (*data_dimensions) for elements to exclude
- Returns:
- StatisticsContainer
Container with computed statistics