Changeset 9585 for branches/ExportSymbolicDataAnalysisSolutions
- Timestamp:
- 06/05/13 11:40:58 (12 years ago)
- Location:
- branches/ExportSymbolicDataAnalysisSolutions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ExportSymbolicDataAnalysisSolutions/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/MenuItems/ExportSymbolicSolutionToExcelMenuItem.cs
r9584 r9585 87 87 WriteInputSheet(inputsWorksheet, datasetWorksheet, formulaParts.Skip(2), solution.ProblemData.Dataset); 88 88 89 ExcelWorksheet estimatedWorksheet = package.Workbook.Worksheets.Add("Estimated Values");90 89 if (solution is IRegressionSolution) { 90 ExcelWorksheet estimatedWorksheet = package.Workbook.Worksheets.Add("Estimated Values"); 91 91 WriteEstimatedWorksheet(estimatedWorksheet, datasetWorksheet, formulaParts, solution as IRegressionSolution); 92 93 ExcelWorksheet chartsWorksheet = package.Workbook.Worksheets.Add("Charts"); 94 AddCharts(chartsWorksheet); 92 95 } 93 94 ExcelWorksheet chartsWorksheet = package.Workbook.Worksheets.Add("Charts");95 AddCharts(chartsWorksheet);96 97 96 package.Workbook.Properties.Title = "Excel Export"; 98 97 package.Workbook.Properties.Author = "HEAL"; … … 309 308 310 309 estimatedWorksheet.Cells["D2:D" + (rows + 1)].Formula = "ABS(B2 - C2)"; 311 estimatedWorksheet.Cells["E2:E" + (rows + 1)].Formula = " ABS(D2 / B2)";310 estimatedWorksheet.Cells["E2:E" + (rows + 1)].Formula = "D2 / B2"; 312 311 estimatedWorksheet.Cells["F2:F" + (rows + 1)].Formula = "C2 - B2"; 313 312 estimatedWorksheet.Cells["G2:G" + (rows + 1)].Formula = "POWER(F2, 2)"; -
branches/ExportSymbolicDataAnalysisSolutions/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Plugin.cs.frame
r9462 r9585 36 36 [PluginDependency("HeuristicLab.Data", "3.3")] 37 37 [PluginDependency("HeuristicLab.Data.Views", "3.3")] 38 [PluginDependency("HeuristicLab.EPPlus", "3.1")] 38 39 [PluginDependency("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding", "3.4")] 39 40 [PluginDependency("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views", "3.4")] -
branches/ExportSymbolicDataAnalysisSolutions/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Formatters/SymbolicDataAnalysisExpressionExcelFormatter.cs
r9584 r9585 167 167 stringBuilder.Append(")"); 168 168 169 } else if (symbol is HeuristicLab.Problems.DataAnalysis.Symbolic.Variable) {169 } else if (symbol is Variable) { 170 170 VariableTreeNode variableTreeNode = node as VariableTreeNode; 171 171 stringBuilder.Append(variableTreeNode.Weight.ToString(CultureInfo.InvariantCulture)); … … 185 185 stringBuilder.Append(",0))"); 186 186 } else { 187 stringBuilder.Append("ERROR");187 throw new NotImplementedException("Excel export of " + node.Symbol + " is not implemented."); 188 188 } 189 189 return stringBuilder.ToString();
Note: See TracChangeset
for help on using the changeset viewer.