Thanks,Hans!
I agree that this is a good way of solving this problem.
Here is another way. Instead of defining a vector of uni-dimensional
functions and trying to integrating
each component (a uni-dimensional function), we can do something below
my.integrand<-function(x,k)
{
return(f[x,k]) ## u
JeffND nd.edu> writes:
>
> Hi folks,
>
> I am having a question about efficiently finding the integrals of a list of
> functions.
We had the same discussion last month under the heading "performance of
adaptIntegrate vs. integrate", see
https://stat.ethz.ch/pipermail/r-help/2011-November
Hi folks,
I am having a question about efficiently finding the integrals of a list of
functions. To be specific,
here is a simple example showing my question.
Suppose we have a function f defined by
f<-function(x,y,z) c(x,y^2,z^3)
Thus, f is actually corresponding to three uni-dimensional func
3 matches
Mail list logo