I need to perform a deconvolution of two vectors. This is equivalent to polynomial division. For example, in Matlab I would use deconv function. Is there a similar/equivalent function in R?
Asked
Active
Viewed 537 times
1
-
Possible duplicate of [Deconvolution with R (decon and deamer package)](http://stackoverflow.com/questions/12462919/deconvolution-with-r-decon-and-deamer-package) – Jason Mar 02 '17 at 22:55
-
Jason, even though the titles are similar, this is completely different question from the one you quoted. The termin Deconvolution refers there to something completely unrelated to Deconvolution in my question and so are the answers. – Sasha Mar 03 '17 at 06:31
1 Answers
2
There is deconv
in package pracma
c = c(10, 40, 100, 160, 170, 120)
u = c(1, 2, 3, 4)
#install.packages("pracma")
library(pracma)
deconv(c, u)
#$q
#[1] 10 20 30
#$r
#[1] 0 0 0

d.b
- 32,245
- 6
- 36
- 77