Changeset 8728 for trunk/sources
- Timestamp:
- 10/04/12 11:28:24 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/SpearmansRankCorrelationCoefficientCalculator.cs
r8689 r8728 20 20 #endregion 21 21 22 using System;23 22 using System.Collections.Generic; 24 23 using System.Linq; … … 30 29 double rs = double.NaN; 31 30 try { 32 rs = alglib.basestat.spearmancorr2(originalValues.ToArray(), estimatedValues.ToArray(), originalValues.Count()); 31 var original = originalValues.ToArray(); 32 var estimated = estimatedValues.ToArray(); 33 rs = alglib.basestat.spearmancorr2(original, estimated, original.Length); 33 34 errorState = OnlineCalculatorError.None; 34 35 } 35 catch ( Exception ex) {36 catch (alglib.alglibexception) { 36 37 errorState = OnlineCalculatorError.InvalidValueAdded; 37 38 }
Note: See TracChangeset
for help on using the changeset viewer.