Changeset 16412
- Timestamp:
- 12/20/18 10:17:34 (6 years ago)
- Location:
- branches/2971_named_intervals
- Files:
-
- 3 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" /> -
branches/2971_named_intervals/NamedIntervals.sln
r16372 r16412 5 5 MinimumVisualStudioVersion = 10.0.40219.1 6 6 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.DataAnalysis-3.4", "HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj", "{DF87C13E-A889-46FF-8153-66DCAA8C5674}" 7 ProjectSection(ProjectDependencies) = postProject 8 {72104A0B-90E7-42F3-9ABE-9BBBADD4B943} = {72104A0B-90E7-42F3-9ABE-9BBBADD4B943} 9 EndProjectSection 7 10 EndProject 8 11 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Data-3.3", "HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj", "{BBAB9DF5-5EF3-4BA8-ADE9-B36E82114937}" … … 69 72 HideSolutionNode = FALSE 70 73 EndGlobalSection 74 GlobalSection(ExtensibilityGlobals) = postSolution 75 SolutionGuid = {A0C8C7DA-3EAD-453E-AA79-33B346EF9B93} 76 EndGlobalSection 71 77 EndGlobal
Note: See TracChangeset
for help on using the changeset viewer.