comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » modulo reset
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: modulo reset [message #41847 is a reply to message #41703] Tue, 23 November 2004 09:45 Go to previous message
MKatz843 is currently offline  MKatz843
Messages: 98
Registered: March 2002
Member
Ralf Schaa wrote in message news:<cnv951$kfc$1@newsreader2.netcologne.de>...
> Hi there,
>
> I'm reading out some binary data and the description says this about a data field :
>
> in the case of a modulo reset add 2^32

This seems like an "unwrapping" problem.
If your data is (relatively) slowly varying, you could interpret any
discrete jump of more than 2^31 as having come from a "modulo reset"
to use their terminology, which I'm guessing I understand.

For example, if the data were modulo 16 (2^4) then a series that looks
like this

1, 3, 5, 7, 9, 11, 13, 15, 1, 3, 5 might actually be
1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21

Here, where a jump of larger than 8 was detected, add (or subtract as
the case may be) 16 to restore "continuity."

M.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Multitasking??
Next Topic: Re: announcing GDL 0.8.6

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 23:31:53 PDT 2025

Total time taken to generate the page: 1.68129 seconds