custom series function

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

custom series function

Post by Jennifer » Tue Dec 28, 2004 2:14 am

Has anyone coded a function to take the derivative
of a series in Teechart VII?. We have a time series and need to
take the derivative.

Jennifer

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue Dec 28, 2004 10:16 am

Hi.

You want to calculate the time derivative of source series ? If yes then you can relatively easy derive new function type from existing TTeeFunction and calculate derivative with one of the available difference formulaes, for example:

Code: Select all

dot_x[n] = (x[n+1]-x[n])/(t[n+1]-t[n])
Of course, you can use higher level difference formula or more complex functions to evaluate derivative at specific point, but the basic idea is the same. To learn more about deriving new function type check TeeChart tutorials and the article about functions I posted on this site.
Marjan Slatinek,
http://www.steema.com

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

Post by Jennifer » Mon Jan 03, 2005 1:51 am

Thanks-

We ened up generating another series and loaded it from the
poarent series and that worked fine. Not as elegant, but works. This
is the week to tackle functions.

Jennifer

Post Reply