Skip to content
Prev 6910 / 29559 Next

Unconditional simulation

Hi Nick,

Very interesting problem. At first thought, I imagined that you just want to simulate noise  ;)

In the geoR package (http://leg.ufpr.br/geoR/) there is a function to simulate Gaussian Random
Fields (uses actually RandomFields package) using various models e.g.:
-------------------------------------------------------------
Analysis of geostatistical data
For an Introduction to geoR go to http://www.leg.ufpr.br/geoR
geoR version 1.6-27 (built on 2009-10-15) is now loaded
-------------------------------------------------------------
grf: generating grid  10  *  10  with  100  points
grf: process with  1  covariance structure(s)
grf: nugget effect is: tausq= 0 
grf: covariance model 1 is: matern(sigmasq=2, phi=0.2, kappa = 1.5)
grf: decomposition algorithm used is:  cholesky 
grf: End of simulation procedure. Number of realizations: 1
You can also simulate a regular point sample with the same spatial structure on top of that using
either Poisson, Bernoulli or binomial models. For example, to simulate a Poisson model, you could
use:

# define your own model, e.g. poisson:
For a uniform model, I would then use the Empirical Cumulative Distribution Function (ECDF):

# uniform distribution:
This would then have the same spatial auto-correlation structure and 'perfectly' uniform
distribution (I might also be wrong - I do not like that a simulated variable has a perfect
histogram).

I am sure that other mathematicians have maybe better ideas.


HTH

T. Hengl
http://home.medewerker.uva.nl/t.hengl/