Last change
on this file since 10347 was
10347,
checked in by bburlacu, 11 years ago
|
#1772: Small changes to the GenealogyGraph. Added generic Fragment class and interface. Added the SymbolicDataAnalysisPopulationDiversityAnalyzer. Added specialized tracking operators for symbolic data analysis. Merged trunk changes.
|
File size:
648 bytes
|
Line | |
---|
1 | using System.Linq;
|
---|
2 | using HeuristicLab.Core;
|
---|
3 | using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
|
---|
4 | using HeuristicLab.EvolutionTracking;
|
---|
5 |
|
---|
6 | namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
|
---|
7 | public class SymbolicDataAnalysisExpressionBeforeManipulatorOperator : BeforeManipulatorOperator<ISymbolicExpressionTree> {
|
---|
8 | public override IOperation Apply() {
|
---|
9 | var result = base.Apply();
|
---|
10 |
|
---|
11 | var vChild = (IGenealogyGraphNode<ISymbolicExpressionTree>)GenealogyGraph[ChildParameter.ActualValue].Last();
|
---|
12 | vChild.InArcs[0].Data = vChild.Content.IterateNodesBreadth().ToList();
|
---|
13 |
|
---|
14 | return result;
|
---|
15 | }
|
---|
16 | }
|
---|
17 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.