MaxStableRF(x, y=NULL, z=NULL, grid, model, param, maxstable,
method=NULL, n=1, register=0, gridtriple=FALSE)InitMaxStableRF(x, y=NULL, z=NULL, grid, model, param, maxstable,
method=NULL, register=0, gridtriple=FALSE)
x
,
y
, and z
should be
interpreted as a grid definition, see Details.CovarianceFct
, or
type PrintModelList()
to get all options;
interpretation depends on the value of maxstable
param=c(mean, variance, nugget, scale,...)
;
the parameters must be given
in this order; further parameters are to be added in case of a
parametrised class of covariance functions,
see
"extremalGauss"
or
"BooleanFunction"
; see Details.NULL
or string; method used for simulating,
see RFMethods
, or
type PrintMethodList()
to get all options;
interpretation degridtriple==FALSE
ascending
sequences for the parameters
x
, y
, and z
are
expected; if gridtriple==TRUE
triples of form
c(start,end,step)
expecInitMaxStableRF
returns 0 if no error has occured, and
a positive value if failed.
MaxStableRF
and DoSimulateRF
return NULL
if an error has occured; otherwise the returned object
depends on the parameters:
n==1
:
* grid==FALSE
. A vector of simulated values is
returned (independent of the dimension of the random field)
* grid==TRUE
. An array of the dimension of the
random field is returned.
n>1
:
* grid==FALSE
. A matrix is returned. The columns
contain the repetitions.
* grid==TRUE
. An array of dimension
$d+1$, where $d$ is the dimension of
the random field, is returned. The last
dimension contains the repetitions.maxstable="extremalGauss"
Gaussian random fields are multiplied by independent
random factors,
and the maximum is taken. The random factors are such that
the resulting random field has unit
Frechet margins; the specification of the random factor
is uniquely given by the specification of the random
field. The parameter vectorparam
, themodel
,
and themethod
are interpreted
in the same way as for Gaussian random fields, seeGaussRF
.maxstable="BooleanFunction"
Deterministic or random, upper semi-continuous$L_1$-functions are randomly centred and multiplied by
suitable, independent random factors; the pointwise maximum over all
these functions yields a max-stable random field.
The simulation technique is related to the random coin
method for Gaussian random field simulation,
seeRFMethods
. Hence, only
models that are suitable for the random coin method
are suitable for this technique, seePrintModelList()
for a complete list of suitable covariance models.
The only value allowed formethod
is"max.MPP"
(andNULL
),
seePrintMethodList()
. In the parameter listparam
the first two entries, namelymean
andvariance
, are ignored. If the nugget is positive,
for each point an additional independent unit Frechet variable
with scale parameternugget
is involved when building the maximum
over all functions.CovarianceFct
,
GaussRF
,
RandomFields
,
RFMethods
,
RFparameters
,
DoSimulateRF
,
.n <- 100
x <- y <- 1:n
ms <- MaxStableRF(x, y, grid=TRUE, model="exponen",
param=c(0,1,0,40), maxstable="extr")
image(x,y,ms)
Run the code above in your browser using DataLab