Skip to content

Commit

Permalink
Expand docstring of qeip to explain return values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayitzin committed Dec 30, 2024
1 parent bb89e45 commit dfc0d83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ahrs/utils/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,9 @@ def qeip(q1: np.ndarray, q2: np.ndarray) -> float:
.. math::
d(\\mathbf{q}_1, \\mathbf{q}_2) = 1 - |\\mathbf{q}_1\\cdot\\mathbf{q}_2|
The error lies within: [0, 1]
The error lies within [0, 1], where :math:`d` is equal to zero if the
quaternions represent the same attitude, and to one if they are completely
divergent.
Parameters
----------
Expand Down

0 comments on commit dfc0d83

Please sign in to comment.