conv
Manual Reference Pages - CONV (1)
conv - Convolution.
CONTENTS
Syntax
Description
Options
Copyright
SYNTAX
conv [options] signal_file impulse_response_file
DESCRIPTION
The response of a linear filter to an arbitiary input signal is theconvolution of the signal with the filters impulse response.The impulse_response_file contains the impulse response which characterises thefilter, and the result of the convolution operation is the response ofthat filter to the signal contained in the signal_file.The signal_file must consist of binary 16-bit numbers (ie. shorts).The impulse_response_file must consist of binary floats.The output signal is the same length as the input signal and is written onthe stdout in binary 16-bit numbers.
If the signal_file consists of an impulse train, then the output shouldbe a repeated impulse response, ie. should be a repeated version of theresponse_file.
OPTIONS
1. length
The amount of the signal file to convolve in time units (s or ms) or insamples (no units). Time units are converted to samples using the givensamplerate option. The string "max" is recognised as the remainder ofinput.
2. domain
Select algorithm for convolution. In the time domain ("domain=time") thediscrete convolution formula is applied directly as a local averagingoperation on the input signal with weights obtained by time-reversing andshifting the impulse response. The impulse response is assumed to be zerofor all time outside the given file. In the frequency domain("domain=frequency") the FFT of the whole input signal is multiplied by afrequency response function (the FFT of the impulse response), andthe result inverse FFTd.
3. scale
A scale factor for scaling the output.
SEE ALSO
options smooth fft acf
COPYRIGHT
Copyright (c) Applied Psychology Unit, Medical Research Council, 1995
Permission to use, copy, modify, and distribute this software without feeis hereby granted for research purposes, provided that this copyrightnotice appears in all copies and in all supporting documentation, and thatthe software is not redistributed for any fee (except for a nominalshipping charge). Anyone wanting to incorporate all or part of thissoftware in a commercial product must obtain a license from the MedicalResearch Council.
The MRC makes no representations about the suitability of thissoftware for any purpose. It is provided "as is" without express orimplied warranty.
THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDINGALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALLTHE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGESOR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THISSOFTWARE.
| SunOS 5.6 | CONV (1) | 1 September 1993 |