INFAMPLITUDECLIP - Perform infinite amplitude clipping on singnal

Usage:
  • xout = infamplitudeclip(xin);
  • xout = infamplitudeclip(xin,'norm');

Description:

INFAMPLITUDECLIP(xin) performs infinite amplitude clipping on the input signal. This is a signal modification that preserves the zero-crossings of the signal, but sets the amplitude to either +1 or -1 depending on the sign of the signal. This type of modification was used in "Licklider and Pollack, 1948".

INFAMPLITUDECLIP(xin,'rms') will do the same, but scale the signal so as to preserve the RMS value of the signal.

References:

J. Licklider and I. Pollack. Effects of differentiation, integration, and infinite peak clipping upon the intelligibility of speech. The Journal of the Acoustical Society of America, 20:42-52, 1948.