das.pulse_utilsΒΆ

Utilities for handling pulses.

Functions

center_of_mass(x, y[, thres])

Calculate center of mass of y.

get_pulseshapes(pulsecenters, song, win_hw)

Extract waveforms around pulsecenters from song.

normalize_pulse(pulse[, smooth_win, flip_win])

Normalize pulses.

pulse_freq(pulse[, fftlen, sampling_rate, ...])

Calculate pulse frequency as center of mass of the pulse's amplitude spectrum.