[R] multiple summation
Uwe Ligges
ligges at statistik.uni-dortmund.de
Tue Mar 16 13:54:17 CET 2004
Paolo Bulla wrote:
> Hello,
> I have to compute a multiple summation (not an integration because the
> independent variables a
> are discrete) for all the values of a function of several variables f
> (x_1,...,x_n), that is
>
> sum ... sum f(x_1,...,x_n)
> x_1 x_n
>
> have you some suggestion? Is it possible?
> I know that for multiple integration there is the function adapt, but it has at
> most n=20. In my case n depends on the dimension of the dataset and, hence, it
> could be bigger.
>
> Thank you,
> Paolo
I's try to vectorizing f() and apply it on the set of all permutations.
Uwe Ligges
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list