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

Scaled function functor: c * f(x). More...

#include <MathUtils_FunctorScalar.hxx>

Public Member Functions

 Scaled (F theF, double theScale)
 Constructor from function and scale factor.
 
bool Value (double theX, double &theY) const
 Evaluates scaled function c * f(theX).
 

Detailed Description

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

Scaled function functor: c * f(x).

Template Parameters
Ffunction type

Constructor & Destructor Documentation

◆ Scaled()

template<typename F >
MathUtils::Scaled< F >::Scaled ( F theF,
double theScale )
inline

Constructor from function and scale factor.

Parameters
theFfunction to scale
theScalescale factor

Member Function Documentation

◆ Value()

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

Evaluates scaled function c * f(theX).

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

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