Re: [R] Distances between two datasets of x and y co-ordinates

2010-03-17 Thread Adrian Baddeley
Tom_R wrote: > How do I use nncross to measure min distances between > point patterns i,j, ENSURING each point in pattern i > is only connected to a single partner point in pattern j ? > I do realise that there are many possible pairings > between the i-j point pairs... perhaps some average > m

Re: [R] Distances between two datasets of x and y co-ordinates

2010-03-17 Thread Rolf Turner
On 18/03/2010, at 12:25 PM, Tom_R wrote: > > Hi, > How do I use nncross to measure min distances between point patterns i,j, > ENSURING each point in pattern i is only connected to a single partner > point in pattern j ? > I do realise that there are many possible pairings between the i-j poi

Re: [R] Distances between two datasets of x and y co-ordinates

2010-03-17 Thread Tom_R
Hi, How do I use nncross to measure min distances between point patterns i,j, ENSURING each point in pattern i is only connected to a single partner point in pattern j ? I do realise that there are many possible pairings between the i-j point pairs... perhaps some average min distance for many

Re: [R] Distances between two datasets of x and y co-ordinates

2008-03-14 Thread Liaw, Andy
From: [EMAIL PROTECTED] > Andrew McFadden <[EMAIL PROTECTED]> writes: > > > I am trying to determine the distances between two datasets > of x and y > > points. > > This can be done efficiently in the package 'spatstat'. > > library(spatstat) > crossdist(x1, y1, x2, y2) > > where x

Re: [R] Distances between two datasets of x and y co-ordinates

2008-03-12 Thread Bill.Venables
Here's what I would try. Suppose x1, y1 and x2, y2 are the two data sets. z1 <- complex(real = x1, imaginary = y1) z2 <- complex(real = x2, imaginary = y2) dMat <- outer(z1, z2, function(z1, z2) Mod(z1-z2)) Bill Venables CSIRO Laboratories PO Box 120, Cleveland, 4163 AUSTRALIA Office Phone (emai

Re: [R] Distances between two datasets of x and y co-ordinates

2008-03-12 Thread Sundar Dorai-Raj
Andrew McFadden said the following on 3/12/2008 1:47 PM: > Hi all > > I am trying to determine the distances between two datasets of x and y > points. The number of points in dataset One is very small i.e. perhaps > 5-10. The number of points in dataset Two is likely to be very large > i.e. 20,