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
custom series function
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:
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.
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])
Marjan Slatinek,
http://www.steema.com
http://www.steema.com