- Timestamp:
- 12/20/18 10:17:34 (6 years ago)
- Location:
- branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/DatasetUtil.cs
r15583 r16412 93 93 } 94 94 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 95 111 private static bool GetEqualValues(this Dictionary<ValuesType, ValuesType> variableValuesMapping, ValuesType originalValues, out ValuesType matchingValues) { 96 112 if (variableValuesMapping.ContainsKey(originalValues)) { -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/HeuristicLab.Problems.DataAnalysis-3.4.csproj
r16372 r16412 41 41 <DebugType>full</DebugType> 42 42 <Optimize>false</Optimize> 43 <OutputPath> $(SolutionDir)\bin\</OutputPath>43 <OutputPath>..\..\..\..\trunk\bin\</OutputPath> 44 44 <DefineConstants>DEBUG;TRACE</DefineConstants> 45 45 <ErrorReport>prompt</ErrorReport> … … 169 169 <Compile Include="Implementation\ConstantModel.cs" /> 170 170 <Compile Include="Implementation\DataAnalysisModel.cs" /> 171 <Compile Include="Implementation\Interval.cs" /> 171 172 <Compile Include="Implementation\Regression\ConfidenceBoundRegressionSolution.cs" /> 172 173 <Compile Include="Implementation\Regression\ConstantRegressionModel.cs" />
Note: See TracChangeset
for help on using the changeset viewer.