neighbor_average_maximum(waveforms, neighbors_indices, neighbors_indptr, local_weight, broken_pixels)¶
Obtain the average waveform built from the neighbors of each pixel
Waveforms stored in a numpy array. Shape: (n_pix, n_samples)
indices of a scipy csr sparse matrix of neighbors, i.e.
indptr of a scipy csr sparse matrix of neighbors, i.e.
Weight of the local pixel (0: peak from neighbors only, 1: local pixel counts as much as any neighbor)
Mask of broken pixels. Broken pixels are ignored in the sum over the neighbors.
Average of neighbor waveforms for each pixel. Shape: (n_pix, n_samples)