如何计算一组圆形数据的平均值? [英] How do you calculate the average of a set of circular data?

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

问题描述

我想计算一组循环数据的平均值.例如,我可能有几个来自指南针读数的样本.问题当然是如何处理环绕.相同的算法可能对表盘有用.

I want to calculate the average of a set of circular data. 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.

实际问题更复杂 - 统计在球体或环绕"的代数空间中意味着什么,例如加性群 mod 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 around", e.g. the additive group mod n. The answer may not be unique, e.g. 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.

推荐答案

书中对这个问题进行了详细考察:球体统计",Geoffrey S. Watson,阿肯色大学讲座数学科学笔记,1983 年 John Wiley &http://catless.ncl.ac.uk/中提到的 Sons, Inc.Risks/7.44.html#subj4 作者:Bruce Karsh.

This question is examined in detail in the book: "Statistics On Spheres", Geoffrey S. Watson, University of Arkansas Lecture Notes in the Mathematical Sciences, 1983 John Wiley & Sons, Inc. as mentioned at http://catless.ncl.ac.uk/Risks/7.44.html#subj4 by Bruce Karsh.

从一组角度测量值中估计平均角度 A 的好方法a[i] 0<=i

A good way to estimate an average angle, A, from a set of angle measurements a[i] 0<=i

                   sum_i_from_1_to_N sin(a[i])
a = arctangent ---------------------------
                   sum_i_from_1_to_N cos(a[i])

starblue 给出的方法在计算上是等价的,但他的理由更清楚,可能在编程上更有效,而且在零情况下也能很好地工作,所以给他点赞.

The method given by starblue is computationally equivalent, but his reasons are clearer and probably programmatically more efficient, and also work well in the zero case, so kudos to him.

现在更详细地探讨了该主题在维基百科上,以及其他用途,如分数部分.

The subject is now explored in more detail on Wikipedia, and with other uses, like fractional parts.

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

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