search for: euclidian_dist

Displaying 1 result from an estimated 1 matches for "euclidian_dist".

2010 May 20
1
finding euclidean proximate points in two datasets
...mity threshold of each point in X differs (X$threshold). I've constructed this myself already, but it's horrificly slow with a dataset of 40k+ points in one set, and a 700 in the other. A very inefficient example of what I'm looking for: for (pt in X$idx) { proximity[i] = euclidian_dist(X[pt]$x, X[pt]$y, Y$x, Y$y) < X$threshold i = i+1 } Perhaps crossdist() in spatstat is what I should use, and then code a comparison with X$threshold after the cross-distances are computed. However, I was wondering if there was another tool I should be considering. Any and all thoughts ar...