Description Usage Arguments Value Author(s) Examples
computes the Laplace convolution of two functions f and g observed at discrete times t. Use trapezoidal formula and an expansion of f in the Laguerre function basis.
1 | LaguerreLaplaceConvolution(t, g, f.coef, a)
|
t, |
numeric vector, the observation times |
g, |
numeric vector, the observed values of the known Laplace convolution kernel at the observation times |
f.coef, |
numeric vector, the coefficients in the Laguerre function basis of the function f to convole with g |
a, |
numeric, the scale of the Laguerre functions basis |
return the Laplace convolution of f and g using Trapezoidal formula and expansion of f in the Laguerre function basis
Y. Rozenholc and M. Pensky
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
library(LaplaceDeconv)
a = 1/2
t = seq(0,10,l=100)
g = exp(-5*t)
f.coef = c(1,0.25,0.1)
# compute the Laplace convolution from g, kernel computed at times t, and the function described by
# its decomposition in Laguerre function basis with scale a
fg = LaguerreLaplaceConvolution(t,g,f.coef,a)
matplot(t,cbind(MakeLaguerreMatrix(a,3)(t)%*%f.coef,g,fg),lty=1,type='l',ylab='')
legend('topright',lty=1,legend=c('f','g','fxg'),col=1:3)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.