Changeset 9337
- Timestamp:
- 03/28/13 14:03:42 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/TTest.cs
r9336 r9337 25 25 26 26 namespace HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views { 27 public class TTest { 27 public class TTest { 28 28 public static double Test(double[] data1, double[] data2) { 29 29 double left, right, both; 30 //TODO: decide what to return31 30 alglib.studentttest2(data1, data1.Length, data2, data2.Length, out both, out left, out right); 32 return left;33 } 31 return both; 32 } 34 33 35 34 public static double GetOptimalSampleSize(double[] data1, double[] data2, double conf = 0.95) { … … 43 42 44 43 result = Math.Pow(t, 2) * (Math.Pow(s1, 2) + Math.Pow(s2, 2)) / Math.Pow(m1 - m2, 2); 45 return result;44 return Math.Ceiling(result); 46 45 } 47 46 }
Note: See TracChangeset
for help on using the changeset viewer.