Power function functor: f(x) = a * x^n + b.
More...
#include <MathUtils_FunctorScalar.hxx>
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()
Evaluates power function.
- Parameters
-
| [in] | theX | input value |
| [out] | theY | function value |
- Returns
- false if x < 0 and exponent is non-integer
◆ Values()
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: