D6Pro TChart Pro 7.07 smoothing function

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
seanmurphy
Newbie
Newbie
Posts: 48
Joined: Fri Mar 12, 2004 5:00 am

D6Pro TChart Pro 7.07 smoothing function

Post by seanmurphy » Mon Oct 16, 2006 3:04 pm

I am using a moothing function against a Tlineseries to draw both the raw and smoothed data. The raw data is a variable, array of some 2000 points, y-varies inside +/-100 as x-increments 1 to 2000. I want the smoothing function to be a rolling average, plotting the mean of 40 samples of the raw data, so smooth[20] would be average of raw[1]..raw[40].

I thought this was the way the smoothing function would work if I set period to 40, and periodalign to pacenter. However, it doesn't appear to be that way. If I set periodstyle at design time to either pafirst, pacenter or palast it has no effect, the curve appears as if it is palast - ie. the smooth has a distinct lag and loses the first 40 samples. If I add a control to alter period at run time, the sampes dropped from the start f the smooth curve tracks the period, indicating it is palast.

If I try and alter period align at run-time, the compiler complains that pacenter conflicts with a property in the Delphi menus unit. I wonder if this is related to loss of tacenter functionality.

thanks
Sean

seanmurphy
Newbie
Newbie
Posts: 48
Joined: Fri Mar 12, 2004 5:00 am

...more

Post by seanmurphy » Mon Oct 16, 2006 3:06 pm

I should add that the function I am using is Teemovingaveragefunction

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Oct 17, 2006 4:30 pm

Hi Sean,

I'm a little confused with the functions you're using, would you be so kind to send me an example directly to my account (pep@steema.com) with which I can reproduce the problem "as is" here ?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Oct 18, 2006 10:06 am

Hi Sean,

We could reproduce this issue with MovingAverage function. This is a bug and I added it to our defect list (TV52011832) to be fixed for future releases.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

seanmurphy
Newbie
Newbie
Posts: 48
Joined: Fri Mar 12, 2004 5:00 am

Post by seanmurphy » Thu Oct 19, 2006 8:26 am

thanks Narcis,

Post Reply