Code Monkey home page Code Monkey logo

Comments (3)

juliohm avatar juliohm commented on May 24, 2024 1

I am happy to say that this longstanding issue is now solved. Thank you for reporting it again, otherwise I would have delayed the investigation further.

There was a very subtle bug in the theoretical variogram expressions where the discontinuity jump at the origin was not being applied. I fixed all the variogram models accordingly as shown here: juliohm/Variography.jl@84b540c

I have tested with your data set again, and the solution looks correct now. As a general rule, when you find ill-conditioned systems in the future, the solution is to add a nugget effect as you did above. This is equivalent to adding a positive term to the diagonal of the covariance which improves the condition number.

The new release of Variography.jl should come out soon and you can get it by updating with the Julia package manager.

Marking as solved. 👍

from geostats.jl.

juliohm avatar juliohm commented on May 24, 2024

Thank you @tianzeliu for reporting the issue. I encountered similar problems in the past (#12) and delayed the resolution for too long. The problem with the Gaussian variogram is known in the literature. This variogram has a behavior at the origin (it is very flat) that leads to quite ill-conditioned covariance matrices. Other software such as SGeMS and GSLIB add a small positive term to the diagonal of the Kriging system to improve the condition number, and I think I will do the same here in GeoStats.jl

I was trying to avoid the solution described above because this type of preconditioning inhibits the interpolation property of Kriging. But because the implementation in GeoStats.jl never touches locations with data, this shouldn't be an issue. I will use your data set to debug the problem further, thank you.

from geostats.jl.

juliohm avatar juliohm commented on May 24, 2024

@tianzeliu could you please provide a minimum example so that I can reproduce the exact same plot?

Thank you for reporting the issue again.

from geostats.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.