D22614: Correlation Coefficient (Pearson's r, Kendall Rank, Spearman Rank)

Stefan Gerlach noreply at phabricator.kde.org
Mon Jul 22 17:35:23 BST 2019


sgerlach added inline comments.

INLINE COMMENTS

> devanshuagarwal wrote in HypothesisTest.cpp:158
> No std cant be < 0.
> 
> In starting I wrote
> 
>   if (std[i] == 0) {
>   }
> 
> but then it shows warning. 
> Comparing floating point with == or != is unsafe.
> 
> Hence I have used <=

you should do a floating point comparison like "std[i] < DBL_MIN" or use gsl_fcmp().

REPOSITORY
  R262 LabPlot

REVISION DETAIL
  https://phabricator.kde.org/D22614

To: devanshuagarwal, sgerlach, asemke
Cc: kde-edu, #labplot, narvaez, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20190722/f2437857/attachment.html>


More information about the kde-edu mailing list