Changeset 13038
 Timestamp:
 10/19/15 18:04:40 (8 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/OnlinePearsonsRCalculator.cs
r12492 r13038 37 37 return 0.0; 38 38 } else { 39 return covCalculator.Covariance / (Math.Sqrt(xVar) * Math.Sqrt(yVar)); 39 var r = covCalculator.Covariance / (Math.Sqrt(xVar) * Math.Sqrt(yVar)); 40 if (r < 1.0) r = 1.0; 41 else if (r > 1.0) r = 1.0; 42 return r; 40 43 } 41 44 }
Note: See TracChangeset
for help on using the changeset viewer.