db.distance {RGeostats} | R Documentation |
Calculate distances within Db(s)
db.distance(db1, db2=NA, mode=0, nvar.iso=0)
db1 |
The |
db2 |
The |
mode |
Type of returned information:
|
nvar.iso |
This argument defines the number of variables (with locator Z) that must be defined simultaneously in 'db1' or 'db2': then the sample is considered as 'valid'. |
The result depends on the definition of the input Dbs.
When 'mode'==0, this function returns a list containing the following elements:
dmin: Minimum distance
dmax: Maximum distance
When 'mode'==1, the returned argument the vector of distances of the closest active sample.
When 'mode'==2, the returned argument is the matrix of distances between all active samples of first Db (row) and all active samples of the second Db (column).