appliedtopology / javaplex

Persistent Homology and Topological Data Analysis Library
BSD 3-Clause "New" or "Revised" License
190 stars 57 forks source link

How to run persistent homology for specific dimension only? #27

Open peter308 opened 4 years ago

peter308 commented 4 years ago

Dear Admin

Is it possible to run persistent homology (PH) just for a specific dimension say k=3 or k=5? Currently, Javaplex runs PH from 0 to k, is it possible to just run one dimension? The reason for asking is because I think if just limit to a specific dimension will not need to use up too many memories which will cause the program to halt.

Best Regards, Peter

michiexile commented 4 years ago

JavaPlex does not currently support computing only for one specific dimension. It is worth noting that in order to enumerate the simplices in that dimension, (almost) all lower-dimensional simplices have to also be enumerated.

peter308 commented 4 years ago

Dear Michiexile I have made a minor change to Ripser, and it seems can calculate only in a specific dimension. I compare the results of barcodes, it seems to be identical, and that is why I think javaplex can be modified into just calculating a specific dimension. However, I might be wrong since I am not the creator of the program. Anyway, thank you for the comments.

Best Regards, Peter

michiexile commented 4 years ago

We would be happy to take a pull request if you want to modify JavaPlex to enable this behavior. I don't think we have the developer resources right now to build it in.