DUECA/DUSIME
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dueca::Inverse Class Reference

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

#include <Inverse.hxx>

Inheritance diagram for dueca::Inverse:
Inheritance graph
[legend]
Collaboration diagram for dueca::Inverse:
Collaboration graph
[legend]

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.
 

Detailed Description

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} \]

Constructor & Destructor Documentation

◆ Inverse()

dueca::Inverse::Inverse ( double K,
double x0 = 0,
double epsx = std::numeric_limits< double >::epsilon() )

Constructor.

Parameters
KGain factor
x0asymptote location
epsxSmallest x (closest to x0) expected, needed to protect for division by zero

Member Function Documentation

◆ operator()()

double dueca::Inverse::operator() ( const double x) const
virtual

The operator.

Implements dueca::SimpleFunction.


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