Last change
on this file since 18066 was
18066,
checked in by dpiringe, 3 years ago
|
#3136
- added a simple way of evaluation (using r2 evaluator)
- added a simple analyzing logic for "Best Tree"
- added a connection to SubFunction in SubFunctionTreeNode
|
File size:
1.2 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Threading.Tasks;
|
---|
6 | using HEAL.Attic;
|
---|
7 | using HeuristicLab.Common;
|
---|
8 | using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
|
---|
9 |
|
---|
10 | namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
|
---|
11 | [StorableType("05130B5F-0125-4367-A4E9-C42D1085024E")]
|
---|
12 | public class SubFunctionTreeNode : SymbolicExpressionTreeNode {
|
---|
13 |
|
---|
14 | #region Properties
|
---|
15 | public new SubFunctionSymbol Symbol => (SubFunctionSymbol)base.Symbol;
|
---|
16 |
|
---|
17 | public IEnumerable<string> FunctionArguments { get; set; } = Enumerable.Empty<string>();
|
---|
18 |
|
---|
19 | public SubFunction SubFunction { get; set; }
|
---|
20 | #endregion
|
---|
21 |
|
---|
22 | #region Constructors
|
---|
23 | public SubFunctionTreeNode(SubFunctionSymbol symbol) : base(symbol) { }
|
---|
24 |
|
---|
25 | [StorableConstructor]
|
---|
26 | protected SubFunctionTreeNode(StorableConstructorFlag _) : base(_) { }
|
---|
27 |
|
---|
28 | protected SubFunctionTreeNode(SubFunctionTreeNode original, Cloner cloner) : base(original, cloner) {
|
---|
29 | this.SubFunction = original.SubFunction;
|
---|
30 | }
|
---|
31 | #endregion
|
---|
32 |
|
---|
33 | #region Cloning
|
---|
34 | public override IDeepCloneable Clone(Cloner cloner) => new SubFunctionTreeNode(this, cloner);
|
---|
35 | #endregion
|
---|
36 | }
|
---|
37 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.