neurom.analysis.morphtree.principal_direction_extent

neurom.analysis.morphtree.principal_direction_extent(tree)

Calculate the extent of a tree, that is the maximum distance between the projections on the principal directions of the covariance matrix of the x,y,z points of the nodes of the tree.

Input
tree : a tree object

Returns

extents : the extents for each of the eigenvectors of the cov matrix eigs : eigenvalues of the covariance matrix eigv : respective eigenvectors of the covariance matrix