#include "xf_fintech/polyfit.hpp"
template < typename DT, unsigned int D > void polyder ( DT pf [D], DT pfDer [D-1] )
Performs the first derivate of a polynomial fitted function defined by its coefficients.
Parameters:
DT | |
: | The data type to be used. |
D | |
: | The degree of the fitted original polynomial |
pf | |
: | The original polyfitted coefficients vector to be integrated. |
pfDer | |
: | Output vector containing the derivate of the original polynomial. Note that it’s length must be 1 fewer than the original polynomial. |