Cosine function functor: f(x) = a * cos(b*x + c) + d.
More...
#include <MathUtils_FunctorScalar.hxx>
|
| | Cosine (double theAmplitude=1.0, double theFrequency=1.0, double thePhase=0.0, double theOffset=0.0) |
| | Constructor with full parameters.
|
| bool | Value (double theX, double &theY) const |
| | Evaluates cosine function.
|
| bool | Values (double theX, double &theY, double &theDY) const |
| | Evaluates cosine function and derivative.
|
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()
| bool MathUtils::Cosine::Value |
( |
double | theX, |
|
|
double & | theY ) const |
|
inline |
Evaluates cosine function.
- Parameters
-
| [in] | theX | input value |
| [out] | theY | function value |
- Returns
- true (always succeeds)
◆ Values()
| bool MathUtils::Cosine::Values |
( |
double | theX, |
|
|
double & | theY, |
|
|
double & | theDY ) const |
|
inline |
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: