peal.teachers.virelay_teacher.Histogram¶
- class peal.teachers.virelay_teacher.Histogram[source]¶
Bases:
ProcessorRepresents a CoRelAy processor, which computes a histogram over its input data.
- Variables:
bins (
Param) – A parameter of the processor, which determines the number of bins that are used to compute the histogram.
Methods
Computes histograms over the specified input data.
- function(data)[source]¶
Computes histograms over the specified input data. One histogram is computed for each channel and each sample in a batch of input data.
- Parameters:
data (
np.ndarray) – The input data over which the histograms are to be computed.- Returns:
Returns the histograms that were computed over the input data.
- Return type:
np.ndarray