Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/19/18 15:33:10 (5 years ago)
Author:
fholzing
Message:

#2904: Updated branch with trunk changes (chaider).

Location:
branches/2904_CalculateImpacts/3.4
Files:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/2904_CalculateImpacts/3.4

  • branches/2904_CalculateImpacts/3.4/DatasetUtil.cs

    r15583 r16410  
    9393    }
    9494
     95    public static Dictionary<string, Interval> GetVariableRanges(IDataset dataset, IEnumerable<int> rows = null) {
     96      Dictionary<string, Interval> variableRanges = new Dictionary<string, Interval>();
     97
     98      foreach (var variable in dataset.VariableNames) {
     99        IEnumerable<double> values = null;
     100
     101        if (rows == null) values = dataset.GetDoubleValues(variable);
     102        else values = dataset.GetDoubleValues(variable, rows);
     103
     104        var range = Interval.GetInterval(values);
     105        variableRanges.Add(variable, range);
     106      }
     107
     108      return variableRanges;
     109    }
     110
    95111    private static bool GetEqualValues(this Dictionary<ValuesType, ValuesType> variableValuesMapping, ValuesType originalValues, out ValuesType matchingValues) {
    96112      if (variableValuesMapping.ContainsKey(originalValues)) {
  • branches/2904_CalculateImpacts/3.4/HeuristicLab.Problems.DataAnalysis-3.4.csproj

    r15809 r16410  
    172172    <Compile Include="Implementation\ConstantModel.cs" />
    173173    <Compile Include="Implementation\DataAnalysisModel.cs" />
     174    <Compile Include="Implementation\Interval.cs" />
    174175    <Compile Include="Implementation\Regression\ConfidenceBoundRegressionSolution.cs" />
    175176    <Compile Include="Implementation\Regression\ConstantRegressionModel.cs" />
Note: See TracChangeset for help on using the changeset viewer.