50 float mu_ =
static_cast<float>(this->
mu);
51 float sigma_ =
static_cast<float>(this->
sigma);
52 float sigma2 = sigma_ * sigma_;
53 float sigma3 = sigma2 * sigma_;
54 float x = (lambda_ - mu_) / sigma_;
55 return -(0.5f * M_SQRT1_2 * M_2_SQRTPI / sigma3) * \
56 std::exp(-0.5f * x * x) * \
57 (std::log(lambda_) - std::log(
mu) + sigma2) / (lambda_ * lambda_);
90 long double mu_ =
static_cast<long double>(this->
mu);
91 long double sigma_ =
static_cast<long double>(this->
sigma);
92 long double sigma2 = sigma_ * sigma_;
93 long double sigma3 = sigma2 * sigma_;
94 long double x = (lambda_ - mu_) / sigma_;
95 return -(0.5l * M_SQRT1_2 * M_2_SQRTPI / sigma3) * \
96 std::exp(-0.5l * x * x) * \
97 (std::log(lambda_) - std::log(
mu) + sigma2) / (lambda_ * lambda_);