Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sundry storage and handling tweaks #32

Open
corybrunson opened this issue Nov 2, 2022 · 1 comment
Open

sundry storage and handling tweaks #32

corybrunson opened this issue Nov 2, 2022 · 1 comment

Comments

@corybrunson
Copy link
Member

While experimenting with Jose Bouza's tda-tools package, some possible improvements suggest themselves:

  • Rather than a single matrix or data frame, it would save space to store persistence data as a list of 2-column matrices. Dimension would be inferred from position in the list, and metadata (e.g. extended persistence) could be stored in a separate list with same-dimension members. This assumes that TDA uses only nonnegative integer dimensions, which is unlikely to change any time soon.
  • With the above chance, a coercion method as.data.frame() would recover the current form of output (without the 'PHom' class).
  • Parameters like the maximum dimension and the distance threshold should be retained in the output object, as list elements or (less likely) as attributes. These are important for interpretation and may be used in downstream steps like plotting or calculating landscapes.
  • Helper functions could be written to access birth–death pairs for a single dimension. These would be useful in analysis pipelines.
@corybrunson
Copy link
Member Author

This idea is being discussed in this tdaverse issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant