You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating this exception, one of the reference test for MillerUpdatingRegression fails (the testPCorr test).
Looking at what this failing test does, it appears that the Pearson correlation matrix indeed as NaN entries in first row and first column (except diagonal element which is 1.0), but these entries are not used.
So I am not sure if we should throw the exception at this low level, as it prevents computing the rest of the matrix as soon as we get the first NaN.
Should
PearsonsCorrelation#computeCorrelationMatrix()
check NaN results here to detect errors earlier in the computation?hipparchus/hipparchus-stat/src/main/java/org/hipparchus/stat/correlation/PearsonsCorrelation.java
Line 235 in 43dcbbd
Example matrix
{{0.0,0.0},{0.0,0.0}}
The text was updated successfully, but these errors were encountered: