Hello!
Are there any low pass filters available in TChart?
We use TLineSeries with several thousand values on them. There are a lot of disturbances in the data and it is almost unusable without filtering.
If we use an analysis program to look at the data it look fine, but we would like to do it directly in TChart.
Regards, Mikael
Low pass filter on TLineSeries
Hi Mikael,
I'm afraid that you should use your custom filter. And you have different ways to do this. One could be adding filtering your data before adding the points to your series to only add the relevant points. And another could be adding your filter at OnAfterAdd series' event. something like following:
I'm afraid that you should use your custom filter. And you have different ways to do this. One could be adding filtering your data before adding the points to your series to only add the relevant points. And another could be adding your filter at OnAfterAdd series' event. something like following:
Code: Select all
procedure TForm1.Series1AfterAdd(Sender: TChartSeries;
ValueIndex: Integer);
begin
if ((Series1.YValue[ValueIndex] < 50) or (Series1.YValue[ValueIndex] > 450)) then
Series1.Delete(ValueIndex);
end;
procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
Series1.Clear;
for i:=0 to 50 do
Series1.Add(random*500);
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Hi Mikael,
Could you please give us some info or some links where we could find explanations of what exactly this filter is used for? Maybe it would be an interesting new feature for a future release.
Thanks in advance.
Could you please give us some info or some links where we could find explanations of what exactly this filter is used for? Maybe it would be an interesting new feature for a future release.
Thanks in advance.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Hi Mikael,
In addition, if you meant FFT (Fast Fourier Transform), maybe you will be interested in testing MtxVec that is compatible with TeeChart.
In addition, if you meant FFT (Fast Fourier Transform), maybe you will be interested in testing MtxVec that is compatible with TeeChart.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Hello,
For my 2 cents, please do not waste time supporting filters natively in TChart. There are dozens of implementations of FFT on the web, both free and for sale. Numerical Recipes in Pascal has a version. IMHO I would rather you guys concentrated on charting than implementing tools that are available in dozens of other ways.
For my 2 cents, please do not waste time supporting filters natively in TChart. There are dozens of implementations of FFT on the web, both free and for sale. Numerical Recipes in Pascal has a version. IMHO I would rather you guys concentrated on charting than implementing tools that are available in dozens of other ways.