Re: [Numpy-discussion] length - sticks algorithm

2014-07-29 Thread Derek Homeier
On 29 Jul 2014, at 02:43 pm, Robert Kern wrote: > On Tue, Jul 29, 2014 at 12:47 PM, Josè Luis Mietta > wrote: > Robert, thanks for your help! > > Now I have: > > * Q nodes (Q stick-stick intersections) > * a list 'NODES'=[(x,y,i,j)_1,, (x,y,i,j)_Q], where each element > (x,y,i,j) re

Re: [Numpy-discussion] length - sticks algorithm

2014-07-29 Thread Robert Kern
On Tue, Jul 29, 2014 at 12:47 PM, Josè Luis Mietta < joseluismie...@yahoo.com.ar> wrote: > Robert, thanks for your help! > > Now I have: > > * Q nodes (Q stick-stick intersections) > * a list 'NODES'=[(x,y,i,j)_1,, (x,y,i,j)_Q], where each element > (x,y,i,j) represent the intersection po

Re: [Numpy-discussion] length - sticks algorithm

2014-07-22 Thread Robert Kern
What have you tried? What exactly are you having problems with? Loosely, I would suggest the following approach: For each stick, iterate over each stick that intersects with it (as recorded in M). Find the coordinates of all of the intersection points. Label the intersection points by the IDs of t

[Numpy-discussion] length - sticks algorithm

2014-07-22 Thread Josè Luis Mietta
Hi experts! Im working with conductivity of sticks film - systems. In my algorithm (N sticks) I have the intersection graph matrix M (M is a NxN matrix, M_ij=1 if sticks 'i' and 'j' do intersect, and M_ij=0 if sticks 'i' and 'j' do not). Also I have 2 lists with the end-points of each stic