| OLD | NEW |
| 1 class Result { | 1 class Result { |
| 2 int get runs() { return _sorted.length; } | 2 int get runs() { return _sorted.length; } |
| 3 | 3 |
| 4 double get sum() { | 4 double get sum() { |
| 5 double result = 0.0; | 5 double result = 0.0; |
| 6 _sorted.forEach((double e) { result += e; }); | 6 _sorted.forEach((double e) { result += e; }); |
| 7 return result; | 7 return result; |
| 8 } | 8 } |
| 9 | 9 |
| 10 double get min() { return _sorted[0]; } | 10 double get min() { return _sorted[0]; } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 } | 42 } |
| 43 | 43 |
| 44 Result._internal(this._sorted) {} | 44 Result._internal(this._sorted) {} |
| 45 | 45 |
| 46 List<double> _sorted; | 46 List<double> _sorted; |
| 47 | 47 |
| 48 // Populated from: http://www.medcalc.be/manual/t-distribution.php | 48 // Populated from: http://www.medcalc.be/manual/t-distribution.php |
| 49 // 95% confidence for N - 1 = 4 | 49 // 95% confidence for N - 1 = 4 |
| 50 static final double T_DISTRIBUTION = 2.776; | 50 static final double T_DISTRIBUTION = 2.776; |
| 51 } | 51 } |
| OLD | NEW |