diff options
author | tlacombe <lacombe1993@gmail.com> | 2020-02-17 17:54:01 +0100 |
---|---|---|
committer | tlacombe <lacombe1993@gmail.com> | 2020-02-17 17:54:01 +0100 |
commit | a9b0d8185ecab51428c1aeeb3bf78787420103b2 (patch) | |
tree | 9be04b0aec2faccf5d37ee0af695e9e18a52c930 /src/python | |
parent | 16e80e921e1edbc63398f7dbc342bd25d1f169de (diff) |
specified that the alg returns None if input is empty
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/gudhi/barycenter.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/python/gudhi/barycenter.py b/src/python/gudhi/barycenter.py index c54066ec..dc9e8241 100644 --- a/src/python/gudhi/barycenter.py +++ b/src/python/gudhi/barycenter.py @@ -103,6 +103,7 @@ def lagrangian_barycenter(pdiagset, init=None, verbose=False): :param pdiagset: a list of size m containing numpy.array of shape (n x 2) (n can variate), encoding a set of persistence diagrams with only finite coordinates. + If empty, returns None. :param init: The initial value for barycenter estimate. If None, init is made on a random diagram from the dataset. Otherwise, it must be an int |