Ticket #2502: weighted_p_square_cum_dist.cpp.patch
File weighted_p_square_cum_dist.cpp.patch, 911 bytes (added by , 14 years ago) |
---|
-
weighted_p_square_cum_dist.cpp
old new 82 82 83 83 // check upper region of distribution 84 84 if ( histogram_upper[i].second > 0.1 ) 85 BOOST_CHECK_CLOSE( 0.5 * (1.0 + my_erf( histogram_upper[i].first / s qrt(2.0) )), histogram_upper[i].second, epsilon );85 BOOST_CHECK_CLOSE( 0.5 * (1.0 + my_erf( histogram_upper[i].first / std::sqrt(2.0) )), histogram_upper[i].second, epsilon ); 86 86 // check lower region of distribution 87 87 if ( histogram_lower[i].second < -0.1 ) 88 BOOST_CHECK_CLOSE( 0.5 * (1.0 + my_erf( histogram_lower[i].first / s qrt(2.0) )), histogram_lower[i].second, epsilon );88 BOOST_CHECK_CLOSE( 0.5 * (1.0 + my_erf( histogram_lower[i].first / std::sqrt(2.0) )), histogram_lower[i].second, epsilon ); 89 89 } 90 90 } 91 91