18 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && \
20 #define _USE_MATH_DEFINES
50 float mu_ =
static_cast<float>(this->
mu);
51 float sigma_ =
static_cast<float>(this->
sigma);
52 float x = (lambda_ - mu_) / sigma_;
53 return (0.5 * M_SQRT1_2 * M_2_SQRTPI / sigma_) * exp(-0.5 * x * x);
67 double x = (lambda_ - this->
mu) / this->
sigma;
68 return (0.5 * M_SQRT1_2 * M_2_SQRTPI / this->
sigma) * exp(-0.5 * x * x);
82 long double mu_ =
static_cast<long double>(this->
mu);
83 long double sigma_ =
static_cast<long double>(this->
sigma);
84 long double x = (lambda_ - mu_) / sigma_;
85 return (0.5 * M_SQRT1_2 * M_2_SQRTPI / sigma_) * exp(-0.5 * x * x);
virtual float function(const float lambda_) const
Gaussian(double mu_, double sigma_)
Sets the default for the parameter mu to 0.0 and for the parameter sigma to 1.0.