[R] deconv

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Mar 26 09:22:26 CET 2008


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 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 vectors of polynomial coefficients, convolving them is
> equivalent to multiplying the two polynomials, and deconvolution is
> polynomial division. The result of dividing v by u is quotient q and
> remainder r.
>
> I'll agree some help on the translation of this operator to R.
>
> Thanks in advance
>
> --
> Ferran Carrascosa
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list