polyval - 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
    >
DT polyval (
    const DT coeff [D],
    const DT x
    )

Calculates the polynomial evaluation of a set of coefficients at the point ‘x’.

Parameters:

DT  
: The data type to be used.
D  
: The degree of the polynomial
coeff  
: The list of polynomial coefficients calculated with polyfit.
x  
: The point at which the polynomial should be evaluated.