Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool PosteriorErrorProbabilityModel::fit(
- std::vector<double> & search_engine_scores)
- {
- ....
- incorrectly_assigned_fit_param_.A =
- 1 / sqrt(2 * 3.14159 *
- pow(incorrectly_assigned_fit_param_.sigma, 2));
- ....
- }
- This suspicious code was found in OpenMS project by PVS-Studio static code analyzer.
- Warning message is:
- V624 The constant 3.14159 is being utilized. The resulting value could be inaccurate. Consider using the M_PI constant from <math.h>. posteriorerrorprobabilitymodel.c 92
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement