Page 1 of 1

spline cubic help

Posted: Tue Jan 25, 2005 5:11 pm
by 9340187
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

Posted: Tue Jan 25, 2005 5:51 pm
by narcis
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.

spline help{contd}

Posted: Wed Jan 26, 2005 9:04 pm
by 9340187
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