StatisticsAggregator#

class ctapipe.monitoring.StatisticsAggregator(**kwargs: Any)[source]#

Bases: BaseAggregator

Base component to handle the computation of aggregated statistic values from a table containing any event-wise quantities (e.g., images, scalars, vectors, or other arrays).

Aggregation is performed along axis=0 (the event dimension) for any N-dimensional data.

Methods Summary

compute_stats(data, masked_elements_of_sample)

Compute aggregated statistics for a chunk of data.

Methods Documentation

abstractmethod 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