Description Usage Arguments Details Value Author(s)
Calculates the distance between sites of a random variable. This is an internal function called by the avg.variog and the Emp.variog function when computing the empirical variogram.
1  | calc.dist(coord1,coord2,id)
 | 
coord1 | 
 numeric vector containing the longitudes of the meteorological stations.  | 
coord2 | 
 vector containing the latitudes of the metereological stations.  | 
id | 
 vector with the id of the metereological stations.  | 
This function is an internal function that is used and called by the avg.variog.dir functions when estimating the empirical variogram of a random variable observed at different meteorlogocal stations.
- Defaults -
None.
The function returns a square matrix of dimension n by n, where n is the length of the vector coord1 where the (i,j) entry of represents the distance between the i-th and the j-th metereological stations.
Berrocal, V. J. veroberrocal@gmail.com, Gel, Y., Raftery, A. E., Gneiting, T.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.