Changeset 18147
- Timestamp:
- 12/16/21 14:43:31 (3 years ago)
- Location:
- branches/3140_NumberSymbol
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj
r18100 r18147 153 153 <SubType>Code</SubType> 154 154 </Compile> 155 <Compile Include="Converters\ConstantsToNumberConverter.cs" /> 155 156 <Compile Include="Converters\LinearModelToTreeConverter.cs" /> 156 157 <Compile Include="Converters\TreeSimplifier.cs" /> -
branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/NumberTreeNode.cs
r18112 r18147 44 44 public NumberTreeNode(Number numberSymbol) : base(numberSymbol) { } 45 45 46 public NumberTreeNode(double value) : this(new Number()) { 47 Value = value; 48 } 49 46 50 public override bool HasLocalParameters => true; 47 51 -
branches/3140_NumberSymbol/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/SymbolicDataAnalysisExpressionTreeSimplifierTest.cs
r18123 r18147 287 287 var formatter = new SymbolicExpressionTreeStringFormatter(); 288 288 var importer = new SymbolicExpressionImporter(); 289 var actualTree = TreeSimplifier.Simplify(importer.Import(original)); 289 var originalTree = importer.Import(original); 290 originalTree = ConstantsToNumberConverter.Convert(originalTree); 291 var actualTree = TreeSimplifier.Simplify(originalTree); 290 292 var expectedTree = importer.Import(expected); 291 293 Assert.AreEqual(formatter.Format(expectedTree), formatter.Format(actualTree));
Note: See TracChangeset
for help on using the changeset viewer.