Giter Club home page Giter Club logo

Comments (5)

lpattelli avatar lpattelli commented on August 24, 2024

can you check if commit 3ce1942 on the develop branch solves this problem?

from celes.

AmosEgel avatar AmosEgel commented on August 24, 2024

I don't think so. In the lowest catch block, CH is used - but if convhull fails, CH is not available.

from celes.

lpattelli avatar lpattelli commented on August 24, 2024

you are right. the proposed code should now be able to correctly handle the case of collinear/coplanar particles, the case of not having pdist available, and both these cases happening at once.

I spent some time trying to come up with an efficient drop-in replacement for pdist, but then realized that this is probably an overkill. in most cases we can just use a reasonable overestimation of maxParticleDistance calculated as sqrt(sum((min(pos)-max(pos)).^2)).
actually, it would be probably OK to just use this simple line of code to replace compute_maximal_particle_distance altogether, if you feel like to.

from celes.

AmosEgel avatar AmosEgel commented on August 24, 2024

Nice, this is the diagonal of a cuboid containing all particles, right?

from celes.

lpattelli avatar lpattelli commented on August 24, 2024

that's exactly it. worst case scenario, we are overestimating maxParticleDistance by some +70% and the computational cost remains negligible for arbitrary number of particles.

from celes.

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.