Re: [R] deconv

2008-03-26 Thread Prof Brian Ripley
See package polynom (and 'S Programming', for which it is a running example). On Wed, 26 Mar 2008, Ferran Carrascosa wrote: > I'm translating a matlab routine to R and I need some equivalent to deconv(): > > Description: deconv() > [q,r] = deconv(v,u) deconvolves vect

[R] deconv

2008-03-26 Thread Ferran Carrascosa
I'm translating a matlab routine to R and I need some equivalent to deconv(): Description: deconv() [q,r] = deconv(v,u) deconvolves vector u out of vector v, using long division. The quotient is returned in vector q and the remainder in vector r such that v = conv(u,q)+r . If u and v are ve