Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
MathUtils::Shifted< F > Class Template Reference

Shifted function functor: f(x) + c. More...

#include <MathUtils_FunctorScalar.hxx>

Public Member Functions

 Shifted (F theF, double theShift)
 Constructor from function and shift value.
 
bool Value (double theX, double &theY) const
 Evaluates shifted function f(theX) + c.
 

Detailed Description

template<typename F>
class MathUtils::Shifted< F >

Shifted function functor: f(x) + c.

Template Parameters
Ffunction type

Constructor & Destructor Documentation

◆ Shifted()

template<typename F >
MathUtils::Shifted< F >::Shifted ( F theF,
double theShift )
inline

Constructor from function and shift value.

Parameters
theFfunction to shift
theShiftshift value (added to output)

Member Function Documentation

◆ Value()

template<typename F >
bool MathUtils::Shifted< F >::Value ( double theX,
double & theY ) const
inline

Evaluates shifted function f(theX) + c.

Parameters
[in]theXinput value
[out]theYshifted value
Returns
false if evaluation fails

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