Power function functor: f(x) = a * x^n + b.
More...
#include <MathUtils_FunctorScalar.hxx>
|
| | Power (double theExponent, double theScale=1.0, double theOffset=0.0) |
| | Constructor with full parameters.
|
| bool | Value (double theX, double &theY) const |
| | Evaluates power function.
|
| bool | Values (double theX, double &theY, double &theDY) const |
| | Evaluates power function and derivative.
|
Power function functor: f(x) = a * x^n + b.
◆ Power()
| MathUtils::Power::Power |
( |
double | theExponent, |
|
|
double | theScale = 1.0, |
|
|
double | theOffset = 0.0 ) |
|
inline |
Constructor with full parameters.
- Parameters
-
| theExponent | power n |
| theScale | scale factor a |
| theOffset | vertical offset b |
◆ Value()
| bool MathUtils::Power::Value |
( |
double | theX, |
|
|
double & | theY ) const |
|
inline |
Evaluates power function.
- Parameters
-
| [in] | theX | input value |
| [out] | theY | function value |
- Returns
- false if x < 0 and exponent is non-integer
◆ Values()
| bool MathUtils::Power::Values |
( |
double | theX, |
|
|
double & | theY, |
|
|
double & | theDY ) const |
|
inline |
Evaluates power function and derivative.
- Parameters
-
| [in] | theX | input value |
| [out] | theY | function value |
| [out] | theDY | derivative value |
- Returns
- false if x < 0 and exponent is non-integer
The documentation for this class was generated from the following file: