DUECA/DUSIME
Public Member Functions | List of all members
dueca::Polynomial< n > Class Template Reference

Implementation of a scaling/converting device, using a polynomial function. More...

Public Member Functions

 Polynomial (const double ai[n+1])
 Constructor. More...
 
 ~Polynomial ()
 Destructor. More...
 
double operator() (const double x) const
 The operator. More...
 
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\)

◆ ~Polynomial()

template<int n>
dueca::Polynomial< n >::~Polynomial ( )

Destructor.

Member Function Documentation

◆ operator()()

template<int n>
double dueca::Polynomial< n >::operator() ( const double  x) const

The operator.


The documentation for this class was generated from the following file: