MedianAngle
Computes the median angle of the input angles.
Applications:This is a substitute for arithmetic average which cannot be done well for angles. For example the average of 1 and 359 is incorrectly 180 (we think 0).
Syntax
C++
Python
def MedianAngle( inAngles: list[float], inAngleRange: AngleRange, / ) -> outMedianAngle: float
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inAngles | list[float] | ||
![]() |
inAngleRange | AngleRange | ||
![]() |
outMedianAngle | float |


