Changeset 4885 for branches/DataAnalysis.PopulationDiversityAnalysis/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers
- Timestamp:
- 11/21/10 19:58:45 (14 years ago)
- Location:
- branches/DataAnalysis.PopulationDiversityAnalysis/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis.PopulationDiversityAnalysis/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers/VariablesUsagePopulationDiversityAnalyzer.cs
r4882 r4885 41 41 [Item("VariablesUsagePopulationDiversityAnalysisOperator", "An operator that analyzes the population diversity with respect to the sets of used variables.")] 42 42 [StorableClass] 43 public sealed class VariablesUsagePopulationDiversityAnalyzer : PopulationDiversityAnalyzer<SymbolicExpressionTree>, ISymbolicRegressionAnalyzer { 44 45 private const string ProblemDataParameterName = "ProblemData"; 46 47 public IValueLookupParameter<DataAnalysisProblemData> ProblemDataParameter { 48 get { return (IValueLookupParameter<DataAnalysisProblemData>)Parameters[ProblemDataParameterName]; } 49 } 50 public DataAnalysisProblemData ProblemData { 51 get { return ProblemDataParameter.ActualValue; } 52 } 53 54 #region ISymbolicRegressionAnalyzer Members 55 56 public ScopeTreeLookupParameter<SymbolicExpressionTree> SymbolicExpressionTreeParameter { 57 get { return base.SolutionParameter; } 58 } 59 60 public new ILookupParameter<ResultCollection> ResultsParameter { 61 get { return base.ResultsParameter; } 62 } 63 64 #endregion 43 public sealed class VariablesUsagePopulationDiversityAnalyzer : SymbolicRegressionPopulationDiversityAnalyzer { 65 44 66 45 [StorableConstructor] 67 46 private VariablesUsagePopulationDiversityAnalyzer(bool deserializing) : base(deserializing) { } 68 47 private VariablesUsagePopulationDiversityAnalyzer(VariablesUsagePopulationDiversityAnalyzer original, Cloner cloner) : base(original, cloner) { } 69 public VariablesUsagePopulationDiversityAnalyzer() : base() { 70 Parameters.Add(new ValueLookupParameter<DataAnalysisProblemData>(ProblemDataParameterName, "The problem data for which the symbolic expression tree is a solution.")); 71 } 48 public VariablesUsagePopulationDiversityAnalyzer() : base() { } 72 49 73 50 public override IDeepCloneable Clone(Cloner cloner) {
Note: See TracChangeset
for help on using the changeset viewer.