Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/12/12 13:29:03 (12 years ago)
Author:
mkommend
Message:

#1976: Added median value to the datatable containing the constant optimization improvments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/ConstantOptimizationAnalyzer.cs

    r8849 r8893  
    4242    private const string DataTableNameConstantOptimizationImprovement = "Constant Optimization Improvement";
    4343    private const string DataRowNameMinimumImprovement = "Minimum improvement";
     44    private const string DataRowNameMedianImprovement = "Median improvement";
    4445    private const string DataRowNameAverageImprovement = "Average improvement";
    4546    private const string DataRowNameMaximumImprovement = "Maximum improvement";
     
    7475      get { return ConstantOptimizationImprovementDataTable.Rows[DataRowNameMinimumImprovement]; }
    7576    }
     77    private DataRow MedianImprovement {
     78      get { return ConstantOptimizationImprovementDataTable.Rows[DataRowNameMedianImprovement]; }
     79    }
    7680    private DataRow AverageImprovement {
    7781      get { return ConstantOptimizationImprovementDataTable.Rows[DataRowNameAverageImprovement]; }
     
    8084      get { return ConstantOptimizationImprovementDataTable.Rows[DataRowNameMaximumImprovement]; }
    8185    }
    82 
    8386    #endregion
    8487
     
    151154        MinimumImprovement.VisualProperties.StartIndexZero = true;
    152155
     156        dataTable.Rows.Add(new DataRow(DataRowNameMedianImprovement));
     157        MedianImprovement.VisualProperties.StartIndexZero = true;
     158
    153159        dataTable.Rows.Add(new DataRow(DataRowNameAverageImprovement));
    154160        AverageImprovement.VisualProperties.StartIndexZero = true;
     
    159165
    160166      MinimumImprovement.Values.Add(qualityImprovement.Min());
     167      MedianImprovement.Values.Add(qualityImprovement.Median());
    161168      AverageImprovement.Values.Add(qualityImprovement.Average());
    162169      MaximumImprovement.Values.Add(qualityImprovement.Max());
Note: See TracChangeset for help on using the changeset viewer.