neurom.morphmath.principal_direction_extent

neurom.morphmath.principal_direction_extent(points)[source]

Calculate the extent of a set of 3D points.

The extent is defined as the maximum distance between the projections on the principal directions of the covariance matrix of the points.

Parameter:
points : a 2D numpy array of points
Returns:the extents for each of the eigenvectors of the cov matrix eigs : eigenvalues of the covariance matrix eigv : respective eigenvectors of the covariance matrix
Return type:extents