Displaying 6 results from an estimated 6 matches for "nndist".
Did you mean:
ndist
2007 Oct 03
2
Speeding up simulation of mean nearest neighbor distances
I've written the function below to simulate the mean 1st through nth
nearest neighbor distances for a random spatial pattern using the
functions nndist() and runifpoint() from spatsat. It works, but runs
relatively slowly - would appreciate suggestions on how to speed up
this function. Thanks. --Dale
library(spatstat)
sim.nth.mdist <- function(nth,nsim) {
D <- matrix(ncol=nth, nrow=nsim)
for (i in 1:nsim) {
rpp <- runifpoint(22, win=...
2011 Apr 11
4
nndist R vs. ArcGIS
Can anyone tell me why I would get different average nearest neighbor values
for the same set of coordinates between ArcGIS 10 and R? Sometimes the
difference in distance is over 1.3 km.
Alexis
--
View this message in context: http://r.789695.n4.nabble.com/nndist-R-vs-ArcGIS-tp3442375p3442375.html
Sent from the R help mailing list archive at Nabble.com.
2012 Jun 20
1
nearest neighbours and their ID
Dear R users,
I used nndist() to gain the distance of 2 nearest
neighbours of the points in my dataset. Is there a way of getting the ID numbers
of these nearest neighbours (along with their distances).
The command I used: nn2 <- nndist(X2, k=1:2). This is the output of the nearest neighbour distances I got (the IDs of...
2012 Sep 03
2
adding points to a point pattern
Hello all:
Is there any way to add points to a point pattern, while keeping a given
minimum distance amongst this new points and the pre-existing points?
Thanks,
Frederico
[[alternative HTML version deleted]]
2013 Apr 11
2
Encircle the closest points
Dear R-user,
For the "matplot" of the following data drawn by
>matplot(t, pch=1)
structure(c(2372L, 2494L, 2170L, 2238L, 1918L, 715L, 1573L, 2437L, 2481L, 1881L, 440L, 2165L, 343L, 121L, 597L, 1163L, 1459L, 2093L, 1454L, 1761L, 1872L, 174L, 2040L, 552L, 1403L, 6381L, 1649L, 4136L, 4415L, 10650L, 12111L, 4397L, 9593L, 7040L, 3888L, 8340L, 11475L, 11413L, 3985L, 1077L, 7723L, 1392L,
2002 Sep 06
1
Installing splancs_2.01-9 on Red Hat Linux 7.3
...s_2.01-9.tar.gz as root,
I get the following error message during the install:
[snip]
g77 -fPIC -O2 -m486 -fno-strength-reduce -g -c weight.f -o weight.o
gcc -shared -o splancs.so areapl.o cncvwt.o dokhat.o inpip.o ipippa.o
iplace.o k12hat.o kernel3d.o khvc.o khvmat.o krnnrm.o krnqne.o krnqrt.o
nndist.o plarea.o ptinpoly.o sekhat.o sort2.o sort.o stkhat.o stsecal.o
tribble.o twodimmse.o weight.o -L/usr/local/lib
-L/usr/lib/gcc-lib/i386-redhat-linux/2.96
-L/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../.. -lreadline -ldl
-lncurses -lg2c -lm -L/usr/lib/R/bin -lR
/usr/bin/ld: cannot find -lreadlin...