DUECA/DUSIME
|
Implementation of a scaling/converting device, using a polynomial function. More...
#include <Polynomial.hxx>
Public Member Functions | |
Polynomial (const double ai[n+1]) | |
Constructor. | |
~Polynomial () | |
Destructor. | |
double | operator() (const double x) const |
The operator. | |
std::ostream & | print (std::ostream &os) const |
Print the value. | |
Implementation of a scaling/converting device, using a polynomial function.
This class is a functor, with a double as input and another double as output. The application for this in DUECA is as an input calibrator for IO signals, see also the InputCalibrator and OutputCalibrator documentation.
dueca::Polynomial< n >::Polynomial | ( | const double | ai[n+1] | ) |
Constructor.
ai | Array with coefficient, polynomial is \(a_0 + a_1 x + a_2 x^2 + \ldots\) |