tacco.utils.get_first_principal_axis

get_first_principal_axis(points)[source]

Get the first principal axis of a set of points.

Parameters:

points – A ndarray or DataFrame with shape N_points by N_dimensions.

Returns:

A ndarray of shape N_dimensions containg the first principal axis (l2 normalized).