Changeset 3975


Ignore:
Timestamp:
06/29/10 15:11:20 (9 years ago)
Author:
mkommend
Message:

added p-values for variable impacts (ticket #1011)

Location:
trunk/sources
Files:
3 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/HeuristicLab.Optimization.Views-3.3.csproj

    r3969 r3975  
    154154      <DependentUpon>RunCollectionTabularView.cs</DependentUpon>
    155155    </Compile>
    156     <Compile Include="RunCollectionVariableImpactView.cs">
    157       <SubType>UserControl</SubType>
    158     </Compile>
    159     <Compile Include="RunCollectionVariableImpactView.Designer.cs">
    160       <DependentUpon>RunCollectionVariableImpactView.cs</DependentUpon>
    161     </Compile>
    162156    <Compile Include="RunCollectionView.cs">
    163157      <SubType>UserControl</SubType>
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/HeuristicLab.Problems.DataAnalysis.Views-3.3.csproj

    r3916 r3975  
    9898      <DependentUpon>ResultsView.cs</DependentUpon>
    9999    </Compile>
     100    <Compile Include="RunCollectionVariableImpactView.cs">
     101      <SubType>UserControl</SubType>
     102    </Compile>
     103    <Compile Include="RunCollectionVariableImpactView.Designer.cs">
     104      <DependentUpon>RunCollectionVariableImpactView.cs</DependentUpon>
     105    </Compile>
    100106    <Compile Include="SupportVectorRegressionSolutionView.cs">
    101107      <SubType>UserControl</SubType>
     
    205211      <Project>{125D3006-67F5-48CB-913E-73C0548F17FA}</Project>
    206212      <Name>HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.3</Name>
     213    </ProjectReference>
     214    <ProjectReference Include="..\..\HeuristicLab.ExtLibs\HeuristicLab.ALGLIB\2.5.0\ALGLIB-2.5.0\ALGLIB-2.5.0.csproj">
     215      <Project>{29E4B033-1FEF-4FE1-AE17-0A9319D7C54E}</Project>
     216      <Name>ALGLIB-2.5.0</Name>
    207217    </ProjectReference>
    208218    <ProjectReference Include="..\..\HeuristicLab.MainForm.WindowsForms\3.3\HeuristicLab.MainForm.WindowsForms-3.3.csproj">
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/HeuristicLabProblemsDataAnalysisViewsPlugin.cs.frame

    r3915 r3975  
    2828  [Plugin("HeuristicLab.Problems.DataAnalysis.Views","3.3.0.$WCREV$")]
    2929  [PluginFile("HeuristicLab.Problems.DataAnalysis.Views-3.3.dll", PluginFileType.Assembly)]
     30    [PluginDependency("HeuristicLab.ALGLIB","2.5.0.0")]
    3031  [PluginDependency("HeuristicLab.Collections", "3.3.0.0")]
    3132  [PluginDependency("HeuristicLab.Common", "3.3.0.0")]
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/RunCollectionVariableImpactView.cs

    r3974 r3975  
    3333using HeuristicLab.Common;
    3434using HeuristicLab.Data;
     35using alglib;
    3536
    3637namespace HeuristicLab.Optimization.Views {
     
    8889                                      from variableName in varImpact.RowNames
    8990                                      select variableName).Distinct().ToList();
     91        List<string> statictics = new List<string> { "Mean", "Median", "StdDev", "Significance Mean>0", "Significance Median>0" };
    9092        List<string> columnNames = runsWithVariables.Select(r => r.Name).ToList();
    91         columnNames.AddRange( new List<string> { "Mean", "Median", "StdDev" });
     93        columnNames.AddRange(statictics);
    9294        int runs = runsWithVariables.Count();
    9395
    94         matrix = new DoubleMatrix(variableNames.Count, runs + 3);
     96        matrix = new DoubleMatrix(variableNames.Count, runs + statictics.Count);
    9597        matrix.SortableView = true;
    9698        matrix.RowNames = variableNames;
     
    113115          matrix[variableIndex, runs + 1] = impacts.Median();
    114116          matrix[variableIndex, runs + 2] = impacts.StandardDeviation();
     117          double leftTail = 0; double rightTail = 0; double bothTails = 0;
     118          double[] impactsArray = impacts.ToArray();
     119          studentttests.studentttest1(ref impactsArray, impactsArray.Length, 0, ref bothTails, ref leftTail, ref rightTail);
     120          matrix[variableIndex, runs + 3] = leftTail;
     121          wsr.wilcoxonsignedranktest(impacts.ToArray(), impactsArray.Length, 0, ref bothTails, ref leftTail, ref rightTail);
     122          matrix[variableIndex, runs + 4] = leftTail;
    115123        }
    116124      }
Note: See TracChangeset for help on using the changeset viewer.