Dear Terry
the R package 'spatstat' contains a large number of functions for
generating point patterns with varying degrees of randomness or orderliness.
They include:
rpoint n independent random points
rpoispprandom number of independent random points
One of the replies suggested using the Strauss process. This does not
produce clumps. You can get weakly clumped point patterns from the Geyer
process and some of the other Gibbs processes offered in 'rmh', but in general
this is not the best way to create clumps.
Hope this helps
Beutel, Terry S wrote:
I am trying to generate two dimensional random coordinates.
For randomly distributed data I have simply used
xy-cbind(runif(100),runif(100))
However I also want to generate coordinates that are more uniformly
distributed, and coordinates that are more
Dear Terry,
I'm not entirely sure if this is what you're looking for, but here's my
suggestion.
To make more uniformly distributed points, you might try something like
xy - expand.grid(list(seq(0,1,.1), seq(0,1,.1)))
plot(jitter(xy[,1], 1.5), jitter(xy[,2], 1.5))
Like I said, I don't know if
Hi,
If you are looking for data clustered in two dimenstions you can use the
multivariate normal package.
Ritwik Sinha
http://darwin.cwru.edu/~rsinha
[[alternative HTML version deleted]]
__
R-help@stat.math.ethz.ch mailing list
Beutel, Terry S Terry.Beutel at dpi.qld.gov.au writes:
I am trying to generate two dimensional random coordinates.
For randomly distributed data I have simply used
xy-cbind(runif(100),runif(100))
However I also want to generate coordinates that are more uniformly
distributed, and
Perhaps you're looking for something along the lines of Sobol
sequences - refer Section 7.7 of Numerical Recipes in C by Press et
al.
Sean
On 18/05/06, Ben Bolker [EMAIL PROTECTED] wrote:
Beutel, Terry S Terry.Beutel at dpi.qld.gov.au writes:
I am trying to generate two dimensional random
I am trying to generate two dimensional random coordinates.
For randomly distributed data I have simply used
xy-cbind(runif(100),runif(100))
However I also want to generate coordinates that are more uniformly
distributed, and coordinates that are more contagiously distributed than
the