您是如何计算一组角度的平均值?您是、平均值、角度

由网友(擦擦屁屁闻闻手@)分享简介:欲计算一组角度的平均值。例如,我可能有几个样品从指南针的读数。当然,问题是如何处理重叠。相同的算法可能是一个钟面是有用的。 I want to calculate the average of a set of angles. For example, I might have several samples fro...

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

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.

阅读全文

相关推荐

最新文章