diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-07-03 16:04:45 +0200 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-07-03 16:04:45 +0200 |
commit | 85eec1ba750d56b66e3739dc486c6205f49fb31e (patch) | |
tree | 74053406d8f1d5ebbf2b6d51c6b8c6f7931b566e /src/python/gudhi/simplex_tree.pyx | |
parent | 444ec77fe16783c35ef86598011a662c5d6e8d92 (diff) |
A proposal for simplex_tree reset_filtration (python & C++)
Diffstat (limited to 'src/python/gudhi/simplex_tree.pyx')
-rw-r--r-- | src/python/gudhi/simplex_tree.pyx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/python/gudhi/simplex_tree.pyx b/src/python/gudhi/simplex_tree.pyx index 20e66d9f..41b06116 100644 --- a/src/python/gudhi/simplex_tree.pyx +++ b/src/python/gudhi/simplex_tree.pyx @@ -358,6 +358,16 @@ cdef class SimplexTree: """ return self.get_ptr().make_filtration_non_decreasing() + def reset_filtration(self, filtration, max_dim): + """This function resets filtration value until a given dimension. + + :param filtration: New threshold value. + :type filtration: float. + :param max_dim: The maximal dimension. + :type max_dim: int. + """ + self.get_ptr().reset_filtration(filtration, max_dim) + def extend_filtration(self): """ Extend filtration for computing extended persistence. This function only uses the filtration values at the 0-dimensional simplices, and computes the extended persistence |