check.model {RGeostats}R Documentation

Checking that the Model is valid

Description

Checking that the Model is valid

Usage

check.model(model, nvar.func = 1, ndim.func = 2, must.not.be.func = FALSE)

Arguments

model

This contains the argument that should be checked against a 'Model'. Two modes are available:

  • The model-class structure containing the parameters of the Model.

  • An external function which contains the equations of a valid covariance (see Details)

nvar.func

When the Model is provided as an external function, this argument provides the number of variables for which the function is defined

ndim.func

When the Model is provided as an external function, this argument provides the space dimension for which the function is defined

must.not.be.func

When TRUE, the 'Model' argument may not be given as a function.

Details

When the 'Model' is provided as a function, the prototype of this function is given as:

my_cov_func(dist,incr=NA,x1=NA,x2=NA,...)

where

In the external function, arguments may be missing (except 'dist'). For security, the argument '...' is recommanded. Moreover, the arguments 'db1', 'iech1', 'db2' and 'iech2' are only defined when the external covariance function is called within a Kriging procedure. Otherise, these arguments are returned as 0 (for 'db*") and -1 (for iech*).

Value

This function returns the following information:


[Package RGeostats version 14.0.10 Index]