Linear function functor: f(x) = a*x + b.
More...
#include <MathUtils_FunctorScalar.hxx>
|
| | Linear (double theSlope, double theIntercept) |
| | Constructor from slope and intercept.
|
| bool | Value (double theX, double &theY) const |
| | Evaluates linear function a*x + b.
|
| bool | Values (double theX, double &theY, double &theDY) const |
| | Evaluates linear function and derivative.
|
Linear function functor: f(x) = a*x + b.
◆ Linear()
| MathUtils::Linear::Linear |
( |
double | theSlope, |
|
|
double | theIntercept ) |
|
inline |
Constructor from slope and intercept.
- Parameters
-
| theSlope | coefficient a (slope) |
| theIntercept | coefficient b (y-intercept) |
◆ Value()
| bool MathUtils::Linear::Value |
( |
double | theX, |
|
|
double & | theY ) const |
|
inline |
Evaluates linear function a*x + b.
- Parameters
-
| [in] | theX | input value |
| [out] | theY | function value |
- Returns
- true (always succeeds)
◆ Values()
| bool MathUtils::Linear::Values |
( |
double | theX, |
|
|
double & | theY, |
|
|
double & | theDY ) const |
|
inline |
Evaluates linear function and derivative.
- Parameters
-
| [in] | theX | input value |
| [out] | theY | function value |
| [out] | theDY | derivative (= slope) |
- Returns
- true (always succeeds)
The documentation for this class was generated from the following file: