DUECA/DUSIME
|
Implementation of a scaling/converting device, using a polynomial function. More...
#include <Inverse.hxx>
Public Member Functions | |
Inverse (double K, double x0=0, double epsx=std::numeric_limits< double >::epsilon()) | |
Constructor. | |
~Inverse () | |
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.
Implements function
\[ y(x) = \frac{K}{x-x0} \]
dueca::Inverse::Inverse | ( | double | K, |
double | x0 = 0, | ||
double | epsx = std::numeric_limits< double >::epsilon() ) |
Constructor.
K | Gain factor |
x0 | asymptote location |
epsx | Smallest x (closest to x0) expected, needed to protect for division by zero |
The operator.
Implements dueca::SimpleFunction.