"""Waveform analysis algorithms."""