skspatial.objects.Points.unique

Points.unique() Points[source]

Return unique points.

The output contains the unique rows of the original array.

Returns
Points

(N, D) array of N unique points with dimension D.

Examples

>>> from skspatial.objects import Points
>>> points = Points([[1, 2, 3], [2, 3, 4], [1, 2, 3]])
>>> points.unique()
Points([[1, 2, 3],
        [2, 3, 4]])