Re: [R] correlation between two 2D point patterns?

2009-08-31 Thread William Simpson
Thanks Chuck. Interesting suggestion. Thanks to everyone for the help. Bill On Sun, Aug 30, 2009 at 4:59 PM, Charles C. Berrycbe...@tajo.ucsd.edu wrote: Bill, prod( cancor( A,B )$cor ) perhaps? Note that this accounts for linear transformations. HTH, Chuck On Sun, 30 Aug

[R] correlation between two 2D point patterns?

2009-08-30 Thread William Simpson
Suppose I have two sets of (x,y) points like this: x1-runif(n=10) y1-runif(n=10) A-cbind(x1,y1) x2-runif(n=10) y2-runif(n=10) B-cbind(x2,y2) I would like to measure how similar the two sets of points are. Something like a correlation coefficient, where 0 means the two patterns are unrelated,

Re: [R] correlation between two 2D point patterns?

2009-08-30 Thread Bernardo Rangel Tura
On Sun, 2009-08-30 at 07:51 +0100, William Simpson wrote: Suppose I have two sets of (x,y) points like this: x1-runif(n=10) y1-runif(n=10) A-cbind(x1,y1) x2-runif(n=10) y2-runif(n=10) B-cbind(x2,y2) I would like to measure how similar the two sets of points are. Something like a

Re: [R] correlation between two 2D point patterns?

2009-08-30 Thread Barry Rowlingson
On Sun, Aug 30, 2009 at 10:46 AM, Bernardo Rangel Turat...@centroin.com.br wrote: On Sun, 2009-08-30 at 07:51 +0100, William Simpson wrote: Suppose I have two sets of (x,y) points like this: x1-runif(n=10) y1-runif(n=10) A-cbind(x1,y1) x2-runif(n=10) y2-runif(n=10) B-cbind(x2,y2) I

Re: [R] correlation between two 2D point patterns?

2009-08-30 Thread Charles C. Berry
Bill, prod( cancor( A,B )$cor ) perhaps? Note that this accounts for linear transformations. HTH, Chuck On Sun, 30 Aug 2009, William Simpson wrote: Suppose I have two sets of (x,y) points like this: x1-runif(n=10) y1-runif(n=10) A-cbind(x1,y1) x2-runif(n=10) y2-runif(n=10)