melem.init {RGeoS}R Documentation

Initialize a Basic Structure

Description

Initialize a new melem-class

Usage

melem.init(ndim=2,nvar=1,vartype=melem.name(3), range=1, sill=NA,
param=1,order=0,flag.aniso=FALSE,aniso.rotmat=NA,aniso.coeffs=NA)

Arguments

vartype

Type of the Basic Structure to be created. By default, this type corresponds to the Nugget Effect. The list of types available is:

  • Nugget effect

  • Exponential

  • Spherical

  • Cubic

  • Gaussian

  • Cardinal Sine

  • J-Bessel

  • K-Bessel

  • Gamma

  • Cauchy

  • Stable

  • Linear

  • Cosinus (1D)

  • Triangle (1D)

  • Cosine Exponential

  • Exp2dfact

  • Expfact

  • Reg1D (1D)

  • Pentamodel

  • Power

  • Order-1 GC

Some are restricted to 1-D case. The two last types should be discarded when building a covariance Model

ndim

Space dimension.

nvar

Number of variables.

range

This parameter provides the range that should be attributed to the new Basic Structure (if required).

sill

This parameter provides the matrix of sills that should be attributed to the new Basic Structure (if required). The dimension of the matrix is 'nvar'.

param

This parameter provides the third parameter that should be attributed to the new Basic Structure (if required).

order

Parameter giving the maximum order of the IRF which corresponds to the model defined. If mode=-1, only covariances can be entered; if mode=0, all covariances and variograms are allowed.

flag.aniso

This parameter provides the Anisotropy flag attributed to the new Basic Structure (if required).

aniso.rotmat

This parameter provides the rotation matrix which defines the main axes of the rotation ellipsoid.

aniso.coeffs

This parameter provides the vector of coefficients that divide the (isotropic) range along each axis of the anisotropy ellipsoid.

Value

The new melem-class Basic Structure.


[Package RGeoS version 9.1.1 Index]