Re: Uneven Set of x y coordinates [message #56017 is a reply to message #56015] |
Wed, 26 September 2007 06:05  |
henrygroe
Messages: 30 Registered: August 2003
|
Member |
|
|
On Sep 25, 2:12 pm, "rpert...@gmail.com" <rpert...@gmail.com> wrote:
> Here is my problem:
> I have 2 sets of x,y coordinates:
>
> (20,3) (23,3)
> (50,3) (55,3)
> (70,3) (74,4)
> (110,3) (155,3)
> (150,4) (166,3)
> etc etc
> etc etc
> etc etc
>
> It is easy to see the first three x,y positions correspond (it is
> known these are close together, and also known that 2nd set is more to
> the right than 1st set, i.e. x2>x1)
>
> The fourth x,y inf first set however does not correspond to the 4th in
> 2nd set, in fact it is a surplus.
>
> I am therefore starting with my shortest array of coordinates and
> trying to match it with the appropriate coordinates in the long array
> discarding the excess points.
>
> So far I have used for, if and while loops...and I am able to identify
> which goes with which, but not able to reach the end of my goal: have
> identical size arrays of coordinates (smallest) with matching
> points...
>
> HELP!
> Thanks,
> RP
Sounds like a good time to read up on histograms, in particular
J.D. Smith's hist_nd.pro.
Tutorial:
http://www.dfanning.com/tips/histogram_tutorial.html
hist_nd.pro:
http://www.dfanning.com/programs/hist_nd.pro
cheers,
-Henry
p.s. David, what *would* we do without your web site???
|
|
|