RFparameters
sets and returns control parameters for the simulation
of random fieldsRFparameters(...) RFparameters.default(Storing=storing, PrintLevel=printlevel,
PracticalRange=practicalrange, CE.force=ce.force,
CE.mmin=ce.mmin, CE.tolRe=ce.tolRe,
CE.tolIm=ce.tolIm, CE.trials=ce.trials,
direct.checkprecision=directcheckprecision,
direct.maxvariables=directmaxvariables,
direct.method=directmethod,
direct.requiredprecision=directrequiredprecision,
spectral.lines=spectrallines,
spectral.grid=spectralgrid,
TBMCE.force=tbmceforce, TBMCE.mmin=tbmcemmin,
TBMCE.tolRe=tbmcetolre, TBMCE.tolIm=tbmcetolim,
TBMCE.trials=tbmcetrials, TBM2.lines=tbm2lines,
TBM2.linesimufactor=tbm2linesimufactor,
TBM2.linesimustep=tbm2linesimustep,
TBM3D2.lines=tbm3D2lines,
TBM3D2.linesimufactor=tbm3D2linesimufactor,
TBM3D2.linesimustep=tbm3D2linesimustep,
TBM3D3.lines=tbm3D3lines,
TBM3D3.linesimufactor=tbm3D3linesimufactor,
TBM3D3.linesimustep=tbm3D3linesimustep,
MPP.approxzero=mppapproxzero,
add.MPP.realisations=addmpprealisations,
MPP.radius=mppradius,
maxstable.maxGauss=maxstablemaxGauss, pch=pchx)
RFparameters.default
and
listed in the following.TRUE
then intermediate results are kept
after each simulation; if several simulation are made with the same
parameters (e.g., by n
$>1$ in GaussRF or
several calls of PrintLevel
$\le0$
there is not any output on the screen. The
higher the number the more tracing information.
Default: 1 [init, do].
1 : messages about errors occurred
2 : messages about partial failures of the algorithmscale==1
).
Default: FALSE
[init].CE.force==TRUE
) after CE.trials
number of trialCE.mmin
the minimum number of rows and columns
of the matrix are given. Default: 0
[init].-1E-5
[init].CE.tolIm
then the eigenvalue is considered as real.
Default: 1E-3
[init].CE.tolRe
and
CE.tolIm
are missed then the matrix size is doubled,
and the matrix isdirect.checkprecision==TRUE
then the precision is checked.
Default: FALS
direct.maxvariables
, then any matrix decomposition
method is rejected. It is important that this option is set
conveniently if direct.method==1
, Cholesky
decomposition will not be attempted, but singular value
decomposition
used instead.
Default: 0
[init].direct.checkprecision==TRUE
and
the direct.requiredprecision
is not reached then Cholesky
decomposition fails, and singular value decomposition is used.
Default: 500
[do].spectral.grid==FALSE
,
and $k\pi/$spectral.lines
for $k$ in 1:spectral.lines
,
otherwise.CE.force
.
Default: FALSE
[init].CE.mmin
. Default: 0
[init].CE.tolRe
. Default: -1E-5
[init].CE.tolIm
. Default: 1E-3
[init].CE.trials
. Default: 3
[init].60
[do].TBM2.linesimufactor
or
TBM2.linesimustep
must be greater than zero. The parameter
that is zero is ignored. The grid on the line is
TBM2.linesimufactor
-times
smaller than the smallest distanceTBM2.linesimustep
. See also TBM2.linesimufactor
.
Default: 0.0
[init].500
[do].TBM3D2.linesimufactor
or
TBM2.linesimustep
must be greater than zero. The parameter
that is zero is ignored. The grid on the line is
TBM3D2.linesimufactor
-times
smaller than the smallest distTBM3D2.linesimustep
. See also TBM3D2.linesimufactor
.
Default: 0.0
[init].500
[do].TBM3D3.linesimufactor
or
TBM2.linesimustep
must be greater than zero. The parameter
that is zero is ignored. The grid on the line is
TBM3D3.linesimufactor
-times smaller than the smallest
distTBM3D3.linesimustep
. See also TBM3D3.linesimufactor
.
Default: 0.0
[init].MPP.approxzero
.
Default: 0.001
[init].100
[do].MPP.approxzero
."#"
[do].NULL
if any parameter has been given,
and the list of all parameter values otherwise.InitGaussRF
, GaussRF
), but most
parts also apply
for the simulation of max-stable random fields
(InitMaxStableRF
, MaxStableRF
).
Some of the global parameters determine the basic settings of a
simulation, e.g. direct.method
(which chooses a square
root of a positive definite matrix). The values of
such parameters are read by
InitGaussRF
and stored in an internal register.
Changing
such a parameter between calling InitGaussRF
and calling
DoSimulateRF
will not have any effect. These parameters have
the flag "[init]".
Parameters like TBM2.lines
(which determines the number of
i.i.d. proceses to be simulated on the line)
are only relevant when generating
random numbers. These parameters are read by DoSimulateRF
, and
are marked by "[do]".
Storing
has an influence on both, InitGaussRF
and
DoSimulateRF
. InitGaussRF
may reserve
more memory if Storing==TRUE
. DoSimulateRF
will
free the register
if Storing==FALSE
, whatever the value of Storing
was
when InitGaussRF
was called. The distinction between [init] and [do] is relevant even if
GaussRF
is used, but called a second time
with the same parameters for the random field and if
RFparameters()$Storing==TRUE
.
Then GaussRF
realises that the second call has the
same parameters, and
takes over the stored intermediate results (that have been calculated
with the RFparameters()
at that time). To prevent this
put RFparameters(Storing==FALSE)
or use
DeleteRegister()
.
A programme that checks whether the parameters are well
adapted to a specific simulation problem is given as an example of
EmpiricalVariogram()
.
For further details on the implemented methods, see RFMethods.
GaussRF
,
GetPracticalRange
,
MaxStableRF
,
RandomFields
,
and RFMethods
.RFparameters(Storing=TRUE)
str(RFparameters())
Run the code above in your browser using DataLab