Icon

Forum0010 - Circular Mean Example

<p><strong>Circular Mean Implementation Example</strong></p><p>This workflow provides a practical implementation of the circular mean algorithm, as detailed in the linked Wikipedia article. Using the article's example angles of 355°, 5°, and 15°, it demonstrates the correct method for averaging cyclical data. The process involves converting the angles into their vector components (sine and cosine), calculating the average of these components, and then converting the result back into a final mean angle using the&nbsp;atan2&nbsp;function. This method correctly yields 5°, avoiding the erroneous 125° result produced by a simple arithmetic mean. The same logic can be scaled up using the&nbsp;GroupBy&nbsp;node, making this implementation ideal for accurately averaging real-world cyclical data like wind direction.</p><p></p><p>Wikipedia article: https://en.wikipedia.org/wiki/Circular_mean</p>

Nodes

Extensions

Links