Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/02/13 13:48:55 (11 years ago)
Author:
ascheibe
Message:

#2031 improved sample size estimation and some minor improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/SampleSizeInfluenceView.cs

    r10016 r10017  
    256256      if (yValue.Any(x => !x.HasValue)) return;
    257257
    258       double y = SampleSizeDetermination.DetermineSampleSizeByEstimatingMean(yValue.Select(x => x.Value).ToArray());
     258      double y = SampleSizeDetermination.DetermineSampleSizeByEstimatingMeanForLargeSampleSizes(yValue.Select(x => x.Value).ToArray());
    259259      sampleSizeTextBox.Text = y.ToString();
    260260    }
     
    315315      }
    316316      matrix.ColumnNames = columnNames;
    317       matrix.RowNames = new string[] { "Count", "Minimum", "Maximum", "Average", "Median", "Standard Deviation", "Variance", "25th Percentile", "75th Percentile", "Lower Confidence", "Upper Confidence" };
     317      matrix.RowNames = new string[] { "Count", "Minimum", "Maximum", "Average", "Median", "Standard Deviation", "Variance", "25th Percentile", "75th Percentile", "Lower Confidence Int.", "Upper Confidence Int." };
    318318
    319319      for (int i = 0; i < seriesCache.Count; i++) {
    320320        Series series = seriesCache.ElementAt(i).Value;
    321321        double[] seriesValues = series.Points.Select(p => p.YValues[0]).OrderBy(d => d).ToArray();
    322         Tuple<double, double> confIntervals = new Tuple<double, double>(double.NaN, double.NaN);
    323         if (seriesValues.Count() > 1)
    324           confIntervals = seriesValues.ConfidenceIntervals(0.95);
     322        Tuple<double, double> confIntervals = seriesValues.ConfidenceIntervals(0.95);
    325323        matrix[0, i] = seriesValues.Length;
    326324        matrix[1, i] = seriesValues.Min();
Note: See TracChangeset for help on using the changeset viewer.