Changeset 10019 for branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/SampleSizeDetermination.cs
- Timestamp:
- 10/02/13 14:43:27 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/SampleSizeDetermination.cs
r10017 r10019 25 25 26 26 namespace HeuristicLab.Analysis.Statistics { 27 public class SampleSizeDetermination {27 public static class SampleSizeDetermination { 28 28 /// <summary> 29 29 /// Determines for a given sample the required sample size as described in … … 58 58 double s = samples.EstimatedStandardDeviation(); 59 59 double z = alglib.invnormaldistribution((conf + 1) / 2); 60 double n = samples.Count();61 60 62 61 double result = Math.Pow(z, 2) * (Math.Pow(s, 2) / Math.Pow(e, 2));
Note: See TracChangeset
for help on using the changeset viewer.