spatialcluster icon indicating copy to clipboard operation
spatialcluster copied to clipboard

triangulation method

Open mpadge opened this issue 7 years ago • 3 comments

Here's one for you @mdsumner : This is a spatial clustering package that uses bog-standard Delaunay triangulation. The first figure on current README illustrates the problems with this: the 2 red points in the top left are delaunayed in just coz of edge effects. What would your opinion be regarding the best - or a better - method for generating neighbour lists used for clustering?

mpadge avatar Apr 27 '18 12:04 mpadge

Not sure I understand really, but what about nabor for identifying k-nearest neighbours?

Or, is it worth tabulating the triangulation index for which vertices are the "most-connected"?

mdsumner avatar Apr 27 '18 22:04 mdsumner

Yeah, i do think a k-neighbours scheme would be useful here - all the distance data are arma matrices, so that's dead easy to just use armadillo to implement a custom one here.

mpadge avatar May 02 '18 11:05 mpadge

The plan: Implement a nbs param with options of "tri", "trin" or numeric. The first is straight Delaunay; the second includes all neighbours with d < max (dist (tri)), and numeric values just get the n nearest.

mpadge avatar May 09 '18 14:05 mpadge