Calculates the square difference between two values of a random variable measured at two meteorological stations. This is an internal function used in the estimation of the empirical variogram of a random variable.
numeric vector containing the observations for a random variable at different meteorological stations.
This function is an internal function that is used and called by the avg.variog and the avg.variog.dir functions when estimating the empirical variogram of a random variable observed at different meteorological stations.
- Defaults -
The function returns a square matrix of dimension n by n, where n is the length of the vector obs, input to the calc.difference function. The (i,j) entry of this matrix gives the squared difference between the value of the random variable at meteorological station i, that is, obs_i, and the value of the meteorological station j, that is, obs_j.
Berrocal, V. J. firstname.lastname@example.org, 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.