model.covmat {RGeostats}R Documentation

Covariance matrix between two Dbs

Description

Establish the covariance matrix between two Dbs

Usage

model.covmat(db1, db2 = db1, model = model.input(), ivar = 1, jvar = 1,
      ranks1 = NA, ranks2 = NA,
      nostat = NA, flag.norm = FALSE, as.cov = FALSE)

Arguments

db1

Name of the db-class which contains the first Db

db2

Name of the db-class which contains the second Db

model

Name of the model-class which contains the model

ivar

Index of the first field

jvar

Index of the second field

ranks1

List of ranks which restricts the set of samples to be considered in the first Db. If not provided, all the samples are considered.

ranks2

List of ranks which restricts the set of samples to be considered in the second Db. If not provided, all the samples are considered.

nostat

List of non-stationary parameters. For details see model.param.define.

flag.norm

If TRUE, the variogram is normalized by the variable variance before it is represented

as.cov

If TRUE, the structure is represented as a covariance; otherwise it is represented as a variogram.

Value

A matrix containing the covariances between any sample (or the ones selected by argument 'ranks1') of the first db-class and any sample (or the ones selected by argument 'ranks2') the second db-class.


[Package RGeostats version 11.1.2 Index]