Last change
on this file since 10375 was
10375,
checked in by bburlacu, 11 years ago
|
#2143: Fixed incorrect accessibility levels of constructors for the pruning analyzers.
|
File size:
1.3 KB
|
Rev | Line | |
---|
[10368] | 1 | using System;
|
---|
| 2 | using HeuristicLab.Common;
|
---|
| 3 | using HeuristicLab.Core;
|
---|
| 4 | using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
|
---|
| 5 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
| 6 |
|
---|
| 7 | namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression {
|
---|
| 8 | [Item("SymbolicRegressionPruningAnalyzer", "An analyzer that prunes introns from the population.")]
|
---|
| 9 | [StorableClass]
|
---|
| 10 | public sealed class SymbolicRegressionPruningAnalyzer : SymbolicDataAnalysisSingleObjectivePruningAnalyzer {
|
---|
[10375] | 11 | private SymbolicRegressionPruningAnalyzer(SymbolicRegressionPruningAnalyzer original, Cloner cloner)
|
---|
[10368] | 12 | : base(original, cloner) {
|
---|
| 13 | }
|
---|
| 14 | public override IDeepCloneable Clone(Cloner cloner) {
|
---|
| 15 | return new SymbolicRegressionPruningAnalyzer(this, cloner);
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | public SymbolicRegressionPruningAnalyzer() {
|
---|
| 19 | impactValuesCalculator = new SymbolicRegressionSolutionImpactValuesCalculator();
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | protected override ISymbolicDataAnalysisModel CreateModel(ISymbolicExpressionTree tree,
|
---|
| 23 | ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, double lowerEstimationLimit = Double.MinValue,
|
---|
| 24 | double upperEstimationLimit = Double.MaxValue) {
|
---|
| 25 | return new SymbolicRegressionModel(tree, interpreter, lowerEstimationLimit, upperEstimationLimit);
|
---|
| 26 | }
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.