polyint - 2023.2 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.2 English
#include "xf_fintech/polyfit.hpp"
template <
    typename DT,
    unsigned int D
    >
void polyint (
    DT pf [D],
    DT pfInt [D+1],
    DT c = 0.0
    )

Performs the definite integral 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.
pfInt  
: Output vector containing the definite integral of the original polynomial. Note that it’s length must be 1 more than the original polynomial to hold the extra degree.
c  
: Constant term of the new integral, defaults to 0.