Changeset 4337
 Timestamp:
 Apr 14, 2023, 3:22:32 AM (5 months ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/yat/statistics/ln_pdf.cc
r4336 r4337 69 69 // pdf = 1/(s sqrt(2pi)) * exp(1/2 * (x/s)^2) 70 70 71 return std::log(s)  0.5 *M_LN2  0.5*M_LNPI  0.5 * std::pow(x/s, 2);71 return std::log(s)  0.5 * (M_LN2 + M_LNPI + std::pow(x/s, 2)); 72 72 } 73 73 … … 126 126 // pdf = 1/(sqrt(2pi)) * exp(1/2 * x^2) 127 127 128 return  0.5 *M_LN2  0.5*M_LNPI  0.5 * x*x;128 return  0.5 * (M_LN2 + M_LNPI + x*x); 129 129 } 130 130
Note: See TracChangeset
for help on using the changeset viewer.