maf.calc {RGeostats}R Documentation

Calculate the MAF for a multivariate data set

Description

Calculate the MAF for a multivariate data set

Usage

maf.calc(db, dirvect = NA, h0 = 0, dh = 1, tolang = NA, bench = 0,
cylrad = 0, opt.code = 0, tolcode = 0, verbose = FALSE)

Arguments

db

The db-class containing the data information used to calculate the MAFs. The MAFs are calculated for the set of "z*" variables present in the DB.

dirvect

The directions in which the variogram must be calculated. For more information, refer to get.directions

h0

The smallest distance between pairs of samples retained for the calculation of the MAFs.

dh

The largest distance between pairs of samples retained for the calculation of the MAFs.

tolang

Angular tolerance for the calculation direction.

bench

Bench separation tolerance for the calculation direction. When bench is defined and positive, a pair is discarded if the separation distance between the two points along the third axis is larger than 'bench'.

cylrad

Cylrad tolerance for each calculation direction. When specified and positive, a pair is discarded if the separation distance in the plane orthogonal to the calculation distance is larger than 'cylrad'.

opt.code

Option concerning the sample codes for constituting pairs:

  • 0 : a pair of samples is selected whatever their codes (if active)

  • 1 : a pair is retained if the code is active in the data base and the codes of the two samples are closer than tolcode

  • 2 : a pair is retained only if the codes of the two samples are different

tolcode

Maximum distance between the codes of the two samples.

verbose

When TRUE, the verbose option is switched ON during the calculation of the MAFs.

Value

A pca-class object which contains the transformation matrices from Variables to Factors and vice-versa.


[Package RGeostats version 11.1.1 Index]