[wxqc] Text to Degrees

Victor Engel brillig at gmail.com
Sun Apr 8 14:17:36 CDT 2007


On 4/8/07, Steve Dimse <steve at dimse.com> wrote:
> That is one way to do it. I use something I find simpler to prevent
> the 360 problem. With each incoming value, I vector add the new value
> with a weight of 1/n. The first reading starts the average, the
> second moves the average 1/2 of the way towards the new reading, the
> third reading moved the average 1/3 of the way towards that new
> reading, the fourth moves the average 1/4 of the way to that new
> reading, and so on. In this way there is only one accumulated vector
> and it is always ready for output, nice when running the averaging
> and output routines as separate processes.

That would work if you're computing the average since a constant time
(like since midnight maybe?) but it wouldn't work for a running
average, like average over the last hour.


More information about the wxqc mailing list