mesh.barycenter {RGeostats}R Documentation

Calculate barycenter coordinates for samples of a Db

Description

Calculate barycenter coordinates for samples of a Db

Usage

mesh.barycenter(db, mesh=NA,
                extendmin=NA, extendmax=NA, cellsize=NA, rotmat=NA,
                flag.sparse=TRUE, verbose=FALSE)

Arguments

db

The db-class containing the samples for which the barycenter coordinates must be calculated

extendmin

Array containing the minimum values along all space coordinates. This information is compulsory to run the Turbo Meshing. It will be ignored when using the Standard Meshing ('dbin' or 'dbout' defined).

extendmax

Array containing the maximum values along all space coordinates. This information is compulsory to run the Turbo Meshing. It will be ignored when using the Standard Meshing ('dbin' or 'dbout' defined).

cellsize

Array containing the spacing interval along all space coordinates. This information is compulsory to run the Turbo Meshing. It will be ignored when using the Standard Meshing ('dbin' or 'dbout' defined).

rotmat

Array containing the rotation matrix (Dimension: ndim x ndim). This argument is optional. It will be used when running the Turbo Meshing and will be ignored when using the Standard Meshing ('dbin' or 'dbout' defined).

mesh

A mesh-class object.

flag.sparse

When TRUE (if the package 'Matrix' is loaded), the resulting matrix is returned as a sparse matrix.

verbose

Verbose flag.

Value

This function returns a sparse matrix. It be formatted:


[Package RGeostats version 14.0.10 Index]