MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Fast calculation of pair correlation function


Hi again,

My previous post contained erroneous thinking from me - with function 
Outer all the distances will be computed twice, between points (a,b) but 
also between (b,a). Better solution would be to use e.g.

rlist = Flatten[Table[Map[Norm, Drop[data,i]-Drop[data,-i]], {i, n-1}]]

with 5 000 points it takes about 56 secs.

Antti


  • Prev by Date: Plotting a x,y,z function
  • Next by Date: Re: Uninstalling Mathematica from Linux
  • Previous by thread: Re: Fast calculation of pair correlation function
  • Next by thread: Re: Fast calculation of pair correlation function