circle_bundles.RP1AngleMetric
- class circle_bundles.RP1AngleMetric(name='RP1_angle', base_name='RP^1', base_name_latex='\\mathbb{RP}^1')[source]
Bases:
objectGeodesic distance on the real projective line \(\mathbb{RP}^1\) using angular coordinates.
The space \(\mathbb{RP}^1\) can be viewed as a circle with antipodal points identified. Angles are therefore taken modulo \(\pi\).
The distance between two angles is
\[d(\theta_1, \theta_2) = \min\left(|\Delta|, \pi - |\Delta|\right), \quad \Delta = (\theta_2 - \theta_1) \bmod \pi.\]This metric is commonly used when the base variable represents unoriented directions.
- __init__(name='RP1_angle', base_name='RP^1', base_name_latex='\\mathbb{RP}^1')
Methods
__init__([name, base_name, base_name_latex])pairwise(X[, Y])Compute projective geodesic distances between angle arrays.
Attributes