petls.Rips.set_boundaries_filtrations#
- Rips.set_boundaries_filtrations(boundaries, filtrations)#
If the boundaries and filtrations were not set in the constructor, set them here.
- Parameters:
- boundariesList[np.array]
List of boundary matrices
- filtrationsList[List[float]]
For each dimension in the complex, a list of simplex filtration values
- Returns:
- None
Examples
>>> d1 = np.array([[-1,0,-1], [1,-1,0], [0,1,1]]) >>> d2 = np.array([[1],[1],[-1]]) >>> boundaries = [d1,d2] >>> filtrations = [[0,1,2],[3,4,5],[5]] >>> pl = petls.Complex() >>> pl.set_boundaries_filtrations(boundaries, filtrations)