SigmaClippingAggregator#

class ctapipe.monitoring.SigmaClippingAggregator(*args: t.Any, **kwargs: t.Any)[source]#

Bases: StatisticsAggregator

Compute aggregated statistic values from a chunk of event-wise data using astropy’s sigma clipping functions.

Works with any N-dimensional event-wise data by aggregating along axis=0 (event dimension) while removing outliers using sigma clipping.

Attributes Summary

iterations

Number of iterations for the sigma clipping outlier removal

max_sigma

Maximal value for the sigma clipping outlier removal

Methods Summary

compute_stats(data, masked_elements_of_sample)

Compute aggregated statistics for a chunk of data.

Attributes Documentation

iterations#

Number of iterations for the sigma clipping outlier removal

max_sigma#

Maximal value for the sigma clipping outlier removal

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