[Numpy-discussion] how to do scoring of random point to avoid overlapping in python

2013-10-18 Thread Pooja Gupta
I have generated random point around a object and then evaluate each random point on certain criteria. But problem is that every time I am getting new point. How i can resolve this problem so that my result should be uniform. Is any way to evaluate the position of random point. for arang in

Re: [Numpy-discussion] how to do scoring of random point to avoid overlapping in python

2013-10-18 Thread Hanno Klemm
On 18.10.2013 12:33, Pooja Gupta wrote: I have generated random point around a object and then evaluate each random point on certain criteria. But problem is that every time I am getting new point. How i can resolve this problem so that my result should be uniform. Is any way to evaluate the

Re: [Numpy-discussion] how to do scoring of random point to avoid overlapping in python

2013-10-18 Thread Pooja Gupta
Thanks Hanno I got some idea. How about the bin(grid)?? On Fri, Oct 18, 2013 at 8:21 PM, Hanno Klemm kl...@phys.ethz.ch wrote: On 18.10.2013 12:33, Pooja Gupta wrote: I have generated random point around a object and then evaluate each random point on certain criteria. But problem is

Re: [Numpy-discussion] Equivalent to IDL's help function

2013-10-18 Thread Chris Barker
On Mon, Oct 7, 2013 at 10:15 AM, Siegfried Gonzi sgo...@staffmail.ed.ac.uk wrote: What is the equivalent to IDL its help function, e.g. == IDL a = make_array(23,23,) IDL help,a will result in: A FLOAT = Array[23, 23] am I missing something, or is this what you get when

Re: [Numpy-discussion] OT: How are SVG data converted into curves

2013-10-18 Thread Chris Barker
On Wed, Oct 16, 2013 at 4:23 PM, Daniele Nicolodi dani...@grinta.net wrote: the format is quite clearly documented. For the path data you can see http://www.w3.org/TR/SVG/paths.html. There are several open source libraries that implement SVG rendering, you may look at those to see how the

Re: [Numpy-discussion] switching from Numeric to numpy

2013-10-18 Thread Raul Cota
John, Just noticed this message, We are already cleaning up all of our code to not be numpy based but for porting from Numeric to numpy: In our C code we settled for the following, #define NUMPY #if !defined(NUMPY) #include arrayobject.h #else #include numpy/oldnumeric.h #endif