Well no.
The sorting routine was OK.
It needs that statement because the sorting uses Raw_Data[Index + 1]
If you make your suggested change, it will overrun the array.
The problem is in the sampling portion.
If Index < sample then goto Read_Again
Should be ...
If Index <= sample then goto Read_Again
____________________ _______________________ ____________________
Ioannis: Thanks!
If you have a particular running average routine (I've seen several), I can throw it in the test.
And the data was formatted like this ... using a total of 300 samples
The order is ... Raw, Median, Melanie, Average, Oversample.Code:Ready 2.502, 2.534, 2.497, 2.497, 2.500 2.507, 2.529, 2.497, 2.497, 2.500 2.487, 2.529, 2.492, 2.497, 2.500 2.502, 2.534, 2.502, 2.502, 2.500 2.502, 2.534, 2.502, 2.502, 2.500 2.507, 2.529, 2.492, 2.492, 2.500 2.517, 2.529, 2.497, 2.497, 2.500 2.492, 2.529, 2.497, 2.497, 2.500 2.492, 2.534, 2.502, 2.502, 2.500 2.507, 2.534, 2.502, 2.502, 2.500 2.517, 2.529, 2.497, 2.497, 2.500 2.497, 2.529, 2.492, 2.497, 2.500 2.502, 2.529, 2.497, 2.497, 2.500 2.512, 2.534, 2.497, 2.497, 2.500 2.497, 2.534, 2.502, 2.502, 2.500
I cut&paste the data from the terminal program into Excel and used the "Text to Columns" command.
We could create another thread and test out various averaging routines.
Figure out the best sample size and measurement techniques. But I doubt anything could ever be better than Oversampling.







Bookmarks