Ticket #2502: weighted_p_square_cum_dist.cpp.patch

File weighted_p_square_cum_dist.cpp.patch, 911 bytes (added by li51ckf02@…, 14 years ago)
  • weighted_p_square_cum_dist.cpp

    old new  
    8282
    8383        // check upper region of distribution
    8484        if ( histogram_upper[i].second > 0.1 )
    85             BOOST_CHECK_CLOSE( 0.5 * (1.0 + my_erf( histogram_upper[i].first / sqrt(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 );
    8686        // check lower region of distribution
    8787        if ( histogram_lower[i].second < -0.1 )
    88             BOOST_CHECK_CLOSE( 0.5 * (1.0 + my_erf( histogram_lower[i].first / sqrt(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 );
    8989    }
    9090}
    9191