rng(x=NULL, dx=NULL, r = 1, p = 2, usedeldir=TRUE)
x
or dx
must be provided.rng
.r
times this distance if r
is not 1). There is
an edge between the vertices associated with the observations if
and only if there are no vertices in the lune defined by the
intersection of the balls.G.T. Toussaint, "A Graph-Theoretic Primal Sketch", Computational Morphology, 229-260, 1988.
D.J. Marchette, Random Graphs for Statistical Pattern Recognition, John Wiley & Sons, 2004.
gg
,cccd
,ccd
x <- matrix(runif(100),ncol=2)
g <- rng(x)
plot(g)
Run the code above in your browser using DataLab