diff options
author | Gard Spreemann <gspreemann@gmail.com> | 2018-09-09 21:48:33 +0200 |
---|---|---|
committer | Gard Spreemann <gspreemann@gmail.com> | 2018-09-09 21:48:33 +0200 |
commit | 837ebff38036ad0ab3a29da9de879046f1c20ddb (patch) | |
tree | 87a58a01bbdbfe1ea4cc821ea2ee61bf0782c8c0 /cython/cython/subsampling.pyx | |
parent | 5bbe0dbb9faad7d4d9ffca7e819e9faa477fb5c6 (diff) | |
parent | a2e642954ae39025e041471d486ecbac25dff440 (diff) |
Merge branch 'dfsg/latest' into debian/sid
Diffstat (limited to 'cython/cython/subsampling.pyx')
-rw-r--r-- | cython/cython/subsampling.pyx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cython/cython/subsampling.pyx b/cython/cython/subsampling.pyx index ac09b7a3..e9d61a37 100644 --- a/cython/cython/subsampling.pyx +++ b/cython/cython/subsampling.pyx @@ -112,7 +112,8 @@ def pick_n_random_points(points=None, off_file='', nb_points=0): return subsampling_n_random_points(points, nb_points) def sparsify_point_set(points=None, off_file='', min_squared_dist=0.0): - """Subsample a point set by picking random vertices. + """Outputs a subset of the input points so that the squared distance + between any two points is greater than or equal to min_squared_dist. :param points: The input point set. :type points: vector[vector[double]]. @@ -122,8 +123,9 @@ def sparsify_point_set(points=None, off_file='', min_squared_dist=0.0): :param off_file: An OFF file style name. :type off_file: string - :param min_squared_dist: Number of points of the subsample. - :type min_squared_dist: unsigned. + :param min_squared_dist: Minimum squared distance separating the output \ + points. + :type min_squared_dist: float. :returns: The subsample point set. :rtype: vector[vector[double]] """ |