skspatial.objects.Points.centroid

Points.centroid() Point[source]

Return the centroid of the points.

Returns:
Point

Centroid of the points.

Examples

>>> from skspatial.objects import Points
>>> Points([[1, 2, 3], [2, 2, 3]]).centroid()
Point([1.5, 2. , 3. ])