conv                 package:signal                 R Documentation

_C_o_n_v_o_l_u_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     A Matlab/Octave compatible convolution function that uses the Fast
     Fourier Transform.

_U_s_a_g_e:

     conv(x, y)

_A_r_g_u_m_e_n_t_s:

     x,y: numeric sequences to be convolved. 

_D_e_t_a_i_l_s:

     The inputs 'x' and 'y' are post padded with zeros as follows:

     'ifft(fft(postpad(x, n) * fft(postpad(y, n))))'

     where 'n = length(x) + length(y) - 1'

_V_a_l_u_e:

     An array of length equal to 'length(x) + length(y) - 1'. If 'x'
     and 'y' are polynomial coefficient vectors, 'conv' returns the
     coefficients of the product polynomial.

_A_u_t_h_o_r(_s):

     Original Octave version by Paul Kienzle pkienzle@user.sf.net.
     Conversion to R by Tom Short.

_R_e_f_e_r_e_n_c_e_s:

     Octave Forge <URL: http://octave.sf.net>

_S_e_e _A_l_s_o:

     'convolve', 'fft', 'ifft', 'fftfilt', 'poly'

_E_x_a_m_p_l_e_s:

     conv(c(1,2,3), c(1,2))
     conv(c(1,2), c(1,2,3))
     conv(c(1,-2), c(1,2))

