Re: [R] Fast evaluation of functions in 3D domains

2015-03-25 Thread David Winsemius
On Mar 25, 2015, at 8:45 AM, David Winsemius wrote: > > On Mar 25, 2015, at 4:55 AM, > wrote: > >> Dear all, >> >> Finally I have tried three different options to integrate a function in a 3D >> volume. Here >> I show a test example. The volume is the box [0,100] x [0,100] x [0,100] and

Re: [R] Fast evaluation of functions in 3D domains

2015-03-25 Thread David Winsemius
On Mar 25, 2015, at 4:55 AM, wrote: > Dear all, > > Finally I have tried three different options to integrate a function in a 3D > volume. Here > I show a test example. The volume is the box [0,100] x [0,100] x [0,100] and > the > function is > > nfw(d) = 4/((d/5)*(1+(d/5))^2) > > where

Re: [R] Fast evaluation of functions in 3D domains

2015-03-25 Thread Duncan Murdoch
On 25/03/2015 7:55 AM, lluis.hurt...@uv.es wrote: > Dear all, > > Finally I have tried three different options to integrate a function in a 3D > volume. Here > I show a test example. The volume is the box [0,100] x [0,100] x [0,100] and > the > function is > > nfw(d) = 4/((d/5)*(1+(d/5))^2) >

Re: [R] Fast evaluation of functions in 3D domains

2015-03-25 Thread Lluis.Hurtado
Dear all, Finally I have tried three different options to integrate a function in a 3D volume. Here I show a test example. The volume is the box [0,100] x [0,100] x [0,100] and the function is nfw(d) = 4/((d/5)*(1+(d/5))^2) where d is the distance between each point in the box to the point (

Re: [R] Fast evaluation of functions in 3D domains

2015-03-23 Thread David Winsemius
On Mar 23, 2015, at 3:44 AM, wrote: > Dear all, > > I am currently working with the spatstat package with 3D samples. I am trying > to > evaluate a non analytical function over the window that encloses the sample > and I > need to know which is the fastest way of doing it. > > The functio

Re: [R] Fast evaluation of functions in 3D domains

2015-03-23 Thread Rolf Turner
On 23/03/15 23:44, lluis.hurt...@uv.es wrote: Dear all, I am currently working with the spatstat package with 3D samples. I am trying to evaluate a non analytical function over the window that encloses the sample and I need to know which is the fastest way of doing it. I gather that you mea

[R] Fast evaluation of functions in 3D domains

2015-03-23 Thread Lluis.Hurtado
Dear all, I am currently working with the spatstat package with 3D samples. I am trying to evaluate a non analytical function over the window that encloses the sample and I need to know which is the fastest way of doing it. The function input is a 3 coordinate position in the window (x,y,z) a