Function implementing the Wiener-Hopf method to determine the least squares solution for an equalizer, implemented as an FIR filter. Given a known transmit sequence (either through use of a training sequence or receiver decisions) and a know received copy of the same sequence, this function will determine the coefficients for an FIR filter (equalizer) that will compensate for all channel distortions, in a least squared error sense. Passing the received sequence through the equalizer will recover the transmitted sequence. Applications are in wireless communications and sound processing.
Added an example script to demonstrate the equalization function on a sound file.