DUECA/DUSIME
Loading...
Searching...
No Matches
dueca::Polynomial< n > Class Template Reference

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.

Detailed Description

template<int n>
class dueca::Polynomial< n >

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.

Constructor & Destructor Documentation

◆ Polynomial()

template<int n>
dueca::Polynomial< n >::Polynomial ( const double ai[n+1])

Constructor.

Parameters
aiArray with coefficient, polynomial is \(a_0 + a_1 x + a_2 x^2 + \ldots\)

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/dueca-4.2.8-build/dueca-4.2.8/extra/Polynomial.hxx