Cylinder.fit#

classmethod Cylinder.fit(positions)#

Fit a 3D point cloud to a cylinder.

Parameters:
positionsnp.ndarray

Point coordinates with shape (n x 3)

Returns:
Cylinder

Class instance with fitted parameters.

Raises:
ValueError

If th number of initial parameters is not equal to five.

NotImplementedError

If the points are not 3D.