The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » sci.math.* » sci.math

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Averaging algorithm
Replies: 9   Last Post: Aug 31, 2013 4:12 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Default User

Posts: 14
Registered: 9/14/05
Averaging algorithm
Posted: Aug 29, 2013 3:41 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I'm working on bit of code that does some data processing. I'd like some input on developing the algorithm. This will effectively condense a large set of data values to a smaller one.

The original data is the result of sampling a waveform. The processed data should still represent that waveform, of course.

Input: 10,000 integer values.
Output: 1023 integer values.

There's nothing that can be done to change the input or output requirements.

My thoughts so far have been a bit brute force, using some sort of moving window that sometimes slides over 10 values, sometime 9, or to duplicate some points in the original data set to bump its size out to 10230 points, then average every 10 inputs to get one output.

I'm not overly happy with those, so if anyone has some more elegant or efficient suggestions I'd be quite interested.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.