Giter Club home page Giter Club logo

Comments (4)

mglisse avatar mglisse commented on June 1, 2024

Hello,
if I understand correctly, you want to build an alpha-complex, in a periodic space, using as weights (as in a regular triangulation) the DTM at each vertex? You are going to need to code some pieces yourself to get the complete pipeline.

  • computing the DTM: essentially, for each point, you need to find the distances to the k nearest neighbors (in the periodic metric). I would first try it brute-force (compute the distances to all the other points, then std::nth_element), and if that's too slow, I would look into using CGAL::Kd_tree with a custom query item (and possibly custom traits).
  • compute the alpha-complex. If your data is in 3d, you can use Gudhi's Alpha_complex_3d (C++). In 2d, I think you can use CGAL, but extracting the filtration from Alpha_shape_2 is non-trivial. In other dimensions, you are out of luck.

from gudhi-devel.

Lxion0553 avatar Lxion0553 commented on June 1, 2024

Thanks for your guide!
It seems like I should construct periodic alpha complex first and then compute DTM value for each vertex and filtration value for each edge and add vertices and edges with corresponding filtration value to simplex tree?

from gudhi-devel.

mglisse avatar mglisse commented on June 1, 2024

Ah, it looks like you are going for what Raphaël Tinarrage calls alpha-DTM-filtration? Then note that you don't need an alpha-complex, just a Delaunay triangulation (i.e. you don't need filtration values if you are going to replace them with your own), though that doesn't change much in terms of code. Yes, what you suggest should work.

from gudhi-devel.

Lxion0553 avatar Lxion0553 commented on June 1, 2024

I understand. Thanks!

from gudhi-devel.

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.