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

Add cocycles feature #23

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[PY] Add documentation to the cocycles output
Signed-off-by: julian <julian.burellaperez@heig-vd.ch>
julian authored and MonkeyBreaker committed Aug 17, 2022
commit c62a1f44b7a3ce216fad222a81d6bab42bfd81f5
9 changes: 9 additions & 0 deletions gph/python/ripser_interface.py
Original file line number Diff line number Diff line change
@@ -481,6 +481,15 @@ def ripser_parallel(X, maxdim=1, thresh=np.inf, coeff=2, metric="euclidean",
Essential simplices corresponding to infinite bars in
dimensions 1 to maxdim, with 2 vertices (edge) for each birth.

'cocycles': list (size maxdim) of list of ndarray, optional
For each dimension less than 'maxdim' a list of representative
cocycles. Each representative cocycle in dimension 'd' is
represented as a ndarray of '(k,d+1)' elements. Each non zero value
of the cocycle is laid out in a row, first the 'd' indices of the
simplex and then the value of the cocycle on the simplex. The
indices of the simplex reference the original point cloud.
'cocycles' are only available if 'return_cocycles' is True.

Notes
-----
The C++ backend and Python API for the computation of Vietoris–Rips