Gaussian function functor: f(x) = a * exp(-((x-mu)^2)/(2*sigma^2)).
More...
#include <MathUtils_FunctorScalar.hxx>
Gaussian function functor: f(x) = a * exp(-((x-mu)^2)/(2*sigma^2)).
◆ Gaussian()
| MathUtils::Gaussian::Gaussian |
( |
double | theAmplitude = 1.0, |
|
|
double | theMean = 0.0, |
|
|
double | theSigma = 1.0 ) |
|
inline |
Constructor with full parameters.
- Parameters
-
| theAmplitude | amplitude a (peak height) |
| theMean | mean mu (center) |
| theSigma | standard deviation sigma (width) |
◆ Value()
Evaluates Gaussian function.
- Parameters
-
| [in] | theX | input value |
| [out] | theY | function value |
- Returns
- false if sigma is zero
◆ Values()
Evaluates Gaussian function and derivative.
- Parameters
-
| [in] | theX | input value |
| [out] | theY | function value |
| [out] | theDY | derivative value |
- Returns
- false if sigma is zero
The documentation for this class was generated from the following file: