Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/21/13 13:26:16 (11 years ago)
Author:
ascheibe
Message:

#1886 calculate Cohen's D and Hedges' G for pairwise comparison and updated documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/StatisticalTestingView.cs

    r9320 r9329  
    2626using System.Windows.Forms;
    2727using HeuristicLab.Analysis.AlgorithmBehavior.Analyzers;
     28using HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views;
    2829using HeuristicLab.Core.Views;
    2930using HeuristicLab.Data;
     
    206207      DoubleMatrix pValsMatrix = new DoubleMatrix(1, stringConvertibleMatrixView.Content.Columns);
    207208      pValsMatrix.ColumnNames = stringConvertibleMatrixView.Content.ColumnNames;
    208       pValsMatrix.RowNames = new string[] { "p-Values" };
     209      pValsMatrix.RowNames = new string[] { "p-Value" };
    209210
    210211      double val;
     
    232233      }
    233234
    234       DoubleMatrix pValsMatrix = new DoubleMatrix(1, stringConvertibleMatrixView.Content.Columns);
     235      DoubleMatrix pValsMatrix = new DoubleMatrix(3, stringConvertibleMatrixView.Content.Columns);
    235236      pValsMatrix.ColumnNames = stringConvertibleMatrixView.Content.ColumnNames;
    236       pValsMatrix.RowNames = new string[] { "p-Values" };
     237      pValsMatrix.RowNames = new string[] { "p-Value", "Cohen's d", "Hedges' g" };
    237238
    238239      double bothtails;
     
    242243        alglib.mannwhitneyutest(data[colIndex], data[colIndex].Length, data[i], data[i].Length, out bothtails, out lefttail, out righttail);
    243244        pValsMatrix[0, i] = bothtails;
     245        pValsMatrix[1, i] = SampleSizeDetermination.CalculateCohensD(data[colIndex], data[i]);
     246        pValsMatrix[2, i] = SampleSizeDetermination.CalculateHedgesG(data[colIndex], data[i]);
    244247      }
    245248
Note: See TracChangeset for help on using the changeset viewer.