|
DUECA/DUSIME
|
Implementation of a scaling/converting device, using a polynomial function. More...
#include <PolynomialN.hxx>


Public Member Functions | |
| PolynomialN () | |
| Empty. | |
| PolynomialN (unsigned int n, const double ai[]) | |
| Constructor. | |
| PolynomialN (const PolynomialN &o) | |
| Copy constructor. | |
| PolynomialN & | operator= (const PolynomialN &o) |
| assignment | |
| ~PolynomialN () | |
| Destructor. | |
| double | operator() (const double x) const |
| The operator. | |
| std::ostream & | print (std::ostream &os) const |
| Print the object. | |
Public Member Functions inherited from dueca::SimpleFunction | |
| SimpleFunction () | |
| Constructor. | |
| virtual | ~SimpleFunction () |
| Destructor. | |
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::PolynomialN::PolynomialN | ( | unsigned int | n, |
| const double | ai[] ) |
Constructor.
| n | Order of the polynomial |
| ai | Array with coefficients, polynomial is \(a_0 + a_1 x + \ldots + a_n x^n \) |
|
virtual |
The operator.
Implements dueca::SimpleFunction.