Search code examples
rmatrix-inversegstat

How Matrix Inversion is done in "krige" function of gstat package of R tool


I am in the midway of understanding how gstat package in R tool implements kriging method. I have understood the calculation of empirical semivariogram and fitting semivariogram models. But I did not understand how it implements the matrix inversion to calculate the weights of the kriging estimators. I have a large data set containing 50000 lat-long-precipitaion triplets. Theoretically inversion of a matrix of size 50000x50000 must be done in order to get the weights. While this large matrix takes several GBs of man memory, which is particularly impractical.

My question is that how krige function does all this within a second?

Regards,

Chandan


Solution

  • You didn't tell what your computing environment is, but I believe it is safe to say that it didn't solve a 50000 points kriging problem in a second. In order to understand what it did, please provide more information, e.g. the commands you used, and the output gstat gave.