get_ellipse_props

compass.helperfunctions.get_ellipse_props(cov, confidence)

Calculates the eigenvalues/eigenvectors of the covariance matrix and returns the major and minor axis length of the ellipse.

Args:

cov (numpy.array (2x2)): Covariance matrix. confidence (float): Probability between 0 and 1.

Returns:

major_axis (float): Semi-major axis. minor_axis (float): Semi-minor axis. angle (float): Angle of rotation of the ellipse.