On Sun, Jun 14, 2009 at 4:39 PM, Nathan S. Watson-Haigh<nathan.watson-ha...@csiro.au> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Is there a library which is capable of identifying distinct clusters of size n > from a series of XY coordinates? > > Failing this, I'd like to be able to to something like: > Using a sliding window of size n along the x-axis I'd like to determine the > distance between the center of the points in the window and the closest point > outside the window. I could then use a distance cutoff to help define my > clusters of size n. However, how can I calculate this distance? > > Cheers, > Nathan >
Here is a start, using PAM clustering: http://casoilresource.lawr.ucdavis.edu/drupal/node/340 cheers, Dylan ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.