Useful functions for Digital Signal Processing.