Cosine function functor: f(x) = a * cos(b*x + c) + d.
More...
#include <MathUtils_FunctorScalar.hxx>
Cosine function functor: f(x) = a * cos(b*x + c) + d.
◆ Cosine()
| MathUtils::Cosine::Cosine |
( |
double | theAmplitude = 1.0, |
|
|
double | theFrequency = 1.0, |
|
|
double | thePhase = 0.0, |
|
|
double | theOffset = 0.0 ) |
|
inline |
Constructor with full parameters.
- Parameters
-
| theAmplitude | amplitude a |
| theFrequency | angular frequency b |
| thePhase | phase shift c |
| theOffset | vertical offset d |
◆ Value()
Evaluates cosine function.
- Parameters
-
| [in] | theX | input value |
| [out] | theY | function value |
- Returns
- true (always succeeds)
◆ Values()
Evaluates cosine function and derivative.
- Parameters
-
| [in] | theX | input value |
| [out] | theY | function value |
| [out] | theDY | derivative value |
- Returns
- true (always succeeds)
The documentation for this class was generated from the following file: