neighbor_average_waveform(waveforms, neighbors_indices, neighbors_indptr, lwt)¶
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.
- lwt: int
Weight of the local pixel (0: peak from neighbors only, 1: local pixel counts as much as any neighbor)
Average of neighbor waveforms for each pixel. Shape: (n_pix, n_samples)