Did not work at 125 points, works at 100 points (memory issue, I think). Measured sorting time (and mode and stdev times, but they were small) for 100pt, 83, 75, 62, and 50pt arrays. Got TIME[ms] = 0.0055 * pts^2 - 0.1655 * pts + 3.9268 with Excel. Standard deviation varied between 19.4 and 28 (averaged per point size), no correlation with number of points. Measurement/sampling time is 1.2 to 2.3ms, TIME[ms]=0.0221 * pts + 0.1293. This is about 22 microseconds per point (~45kHz). The servo is driven with a 50Hz pulse train, so the Arduino measurement rate can fit at most 900 measurements into a single phase. Memory restrains this to 100 points. I will try taking consecutive 100 point measurements, using only the one that has a standard deviation less than some limit. Looking at the data, limit should be around 4.
Did not work at 125 points, works at 100 points (memory issue, I think). Measured sorting time (and mode and stdev times, but they were small) for 100pt, 83, 75, 62, and 50pt arrays. Got TIME[ms] = 0.0055 * pts^2 - 0.1655 * pts + 3.9268 with Excel. Standard deviation varied between 19.4 and 28 (averaged per point size), no correlation with number of points. Measurement/sampling time is 1.2 to 2.3ms, TIME[ms]=0.0221 * pts + 0.1293. This is about 22 microseconds per point (~45kHz). The servo is driven with a 50Hz pulse train, so the Arduino measurement rate can fit at most 900 measurements into a single phase. Memory restrains this to 100 points. I will try taking consecutive 100 point measurements, using only the one that has a standard deviation less than some limit. Looking at the data, limit should be around 4.

tyblu/comp444-random,tyblu/comp444-random,tyblu/comp444-random,tyblu/comp444-random