spline cubic help

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Jennifer
Newbie
Newbie
Posts: 20
Joined: Tue Dec 07, 2004 5:00 am

spline cubic help

Post by Jennifer » Tue Jan 25, 2005 5:11 pm

we have looked all over and cannot find much on spline cubuc. Could
you supply us with a few lines of code showing how to
implement spline cubic, with factor=4,interpolatrion=true?.

Thannks,

Jennifer Good

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

Post by Narcís » Tue Jan 25, 2005 5:51 pm

Hi Jennifer,

Yes, there's and example of it at the TeeChart features demo included within the installation. You can search for spline and have a look at the Smoothing Spline.
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

Jennifer
Newbie
Newbie
Posts: 20
Joined: Tue Dec 07, 2004 5:00 am

spline help{contd}

Post by Jennifer » Wed Jan 26, 2005 9:04 pm

Thanks Mark-
We went into Function_smoothing and we understand what it said. I think
we need a little more help, but heres what we have-

Assume the series we want to smooth is Series1 and the smoothing function is TeeFunction1 and the Series1 is populated. Then, it looks what we want do is:

tempseries.create(self);
chart1.addseries(tempseries);
tempseries.setfunc(TeeFunction1.create(self));
tempseries.interpolate:=true;
tempseries.factor:=5;
tempseries.datasources.clear;
tempseries.datasources.add(series1);
series1.visible:=false;

Is this close?

Thanks,

Jennifer

Post Reply