您是如何计算一组角度的平均值? [英] How do you calculate the average of a set of angles?

查看:2921
本文介绍了您是如何计算一组角度的平均值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

欲计算一组角度的平均值。例如,我可能有几个样品从指南针的读数。当然,问题是如何处理重叠。相同的算法可能是一个钟面是有用的。

I want to calculate the average of a set of angles. For example, I might have several samples from the reading of a compass. The problem of course is how to deal with the wraparound. The same algorithm might be useful for a clockface.

实际的问题是比较复杂的 - 你什么意思统计球体上或在代数空间,包圆,如加群模N。答案可能不是唯一的,例如,为359度和1度的平均值可以是0度或180,但在统计学0看起来更好。

The actual question is more complicated - what do statistics mean on a sphere or in an algebraic space which "wraps round", eg the additive group mod n. The answer may not be unique, eg the average of 359 degrees and 1 degree could be 0 degrees or 180, but statistically 0 looks better.

这对我来说是一个真正的编程问题,我想使它看起来不像只是一个数学问题。

This is a real programming problem for me and I'm trying to make it not look like just a Math problem.

推荐答案

从角度计算单位向量,并把他们的平均的角度。

Compute unit vectors from the angles and take the angle of their average.

这篇关于您是如何计算一组角度的平均值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆