[DUG] Chart Smoothing

Jay Daley jay at controlfreak.net
Mon May 10 15:13:05 NZST 2021


Wikipedia has a page on smoothing algorithms https://en.wikipedia.org/wiki/Smoothing

Picking one at random from that list, I find a nice Delphi component https://www.dewresearch.com/Help/Delphi/DSPMaster/AdaptiveFiltering_TKalmanFilter.html

Good luck!

Jay

> On 10/05/2021, at 10:03 AM, Marshland Engineering <marshland at marshland.co.nz> wrote:
> 
> I'd get a better sensor ?
> 
> I reading speed to 4 decimal places with an encoder and ATMEGA. The data is
> very accurate. The problem is that sampling at 30 hz means the rate of change
> of speed between samples is quite small, ie the noisy signal. I can improve
> the acceleration curve by taking fewer samples, ie the rate of change between
> samples is bigger, but a run may only be 3 seconds long so 90 samples is not a
> lot to start with.
> 
> The curve is definitely in the data, just need to smooth it out. What has
> given me a better curve is take 10 or so readings and remove the highest and
> lowest value and average the rest. Much cleaner plot. If I do that a second
> time, it is quite clean. But still looking for the best solution. 
> 
> I tried ChartFX from withing Delphi as that has some other properties but that
> component seems to be far from working correctly. 
> 
> Cheers Wallace
> 
> 
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at listserver.123.net.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at listserver.123.net.nz with Subject: unsubscribe




More information about the Delphi mailing list