Changeset 9336
- Timestamp:
- 03/28/13 10:08:37 (12 years ago)
- Location:
- branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views-3.3.csproj
r9330 r9336 160 160 </Compile> 161 161 <Compile Include="SuccessorConfiguratorMenuItem.cs" /> 162 <Compile Include="TTest.cs" /> 162 163 </ItemGroup> 163 164 <ItemGroup> -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/StatisticalTestingView.cs
r9333 r9336 234 234 } 235 235 236 DoubleMatrix pValsMatrix = new DoubleMatrix( 3, stringConvertibleMatrixView.Content.Columns);236 DoubleMatrix pValsMatrix = new DoubleMatrix(5, stringConvertibleMatrixView.Content.Columns); 237 237 pValsMatrix.ColumnNames = stringConvertibleMatrixView.Content.ColumnNames; 238 pValsMatrix.RowNames = new string[] { "p-Value", "Cohen's d", "Hedges' g" }; 239 240 double bothtails; 241 double lefttail; 242 double righttail; 238 pValsMatrix.RowNames = new string[] { "p-Value of MannWhitneyU", "p-Value of T-Test", "Necessary Sample Size for T-Test", "Cohen's d", "Hedges' g" }; 239 240 double mwuBothtails; 241 double mwuLefttail; 242 double mwuRighttail; 243 double ttestLefttail; 243 244 for (int i = 0; i < data.Length; i++) { 244 alglib.mannwhitneyutest(data[colIndex], data[colIndex].Length, data[i], data[i].Length, out bothtails, out lefttail, out righttail); 245 pValsMatrix[0, i] = bothtails; 246 pValsMatrix[1, i] = SampleSizeDetermination.CalculateCohensD(data[colIndex], data[i]); 247 pValsMatrix[2, i] = SampleSizeDetermination.CalculateHedgesG(data[colIndex], data[i]); 245 alglib.mannwhitneyutest(data[colIndex], data[colIndex].Length, data[i], data[i].Length, out mwuBothtails, out mwuLefttail, out mwuRighttail); 246 ttestLefttail = TTest.Test(data[colIndex], data[i]); 247 pValsMatrix[0, i] = mwuBothtails; 248 pValsMatrix[1, i] = ttestLefttail; 249 pValsMatrix[2, i] = TTest.GetOptimalSampleSize(data[colIndex], data[i]); 250 pValsMatrix[3, i] = SampleSizeDetermination.CalculateCohensD(data[colIndex], data[i]); 251 pValsMatrix[4, i] = SampleSizeDetermination.CalculateHedgesG(data[colIndex], data[i]); 248 252 } 249 253
Note: See TracChangeset
for help on using the changeset viewer.