Changeset 12334
- Timestamp:
- 04/23/15 15:20:34 (9 years ago)
- Location:
- branches/SymbolicExpressionTreeEncoding/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SymbolicExpressionTreeEncoding/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Analyzers/SymbolicExpressionTreeLengthAnalyzer.cs
r12012 r12334 51 51 get { return (IScopeTreeLookupParameter<ISymbolicExpressionTree>)Parameters[SymbolicExpressionTreeParameterName]; } 52 52 } 53 54 public ILookupParameter<IntValue> MaximumSymbolicExpressionTreeLengthParameter { 55 get { return (ILookupParameter<IntValue>)Parameters[MaximumSymbolicExpressionTreeLengthParameterName]; } 56 } 53 57 public ValueLookupParameter<DataTable> SymbolicExpressionTreeLengthsParameter { 54 58 get { return (ValueLookupParameter<DataTable>)Parameters[SymbolicExpressionTreeLengthsParameterName]; } … … 178 182 } 179 183 180 double maximumAllowedTreeLength = ((LookupParameter<IntValue>)Parameters[MaximumSymbolicExpressionTreeLengthParameterName]).ActualValue.Value;184 double maximumAllowedTreeLength = MaximumSymbolicExpressionTreeLengthParameter.ActualValue.Value; 181 185 182 186 treeLengthsTableRow.VisualProperties.ChartType = DataRowVisualProperties.DataRowChartType.Histogram; -
branches/SymbolicExpressionTreeEncoding/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionTreeEncoding.cs
r12319 r12334 157 157 #endregion 158 158 159 160 159 [StorableConstructor] 161 160 private SymbolicExpressionTreeEncoding(bool deserializing) : base(deserializing) { } … … 164 163 public SymbolicExpressionTreeEncoding(string name, ISymbolicExpressionGrammar grammar, int maximumLength, int maximumDepth) 165 164 : base(name) { 166 treeLengthParameter = new FixedValueParameter<IntValue>("Maxim ium Tree Length", "Maximal length of the symbolic expression.", new IntValue(maximumLength));165 treeLengthParameter = new FixedValueParameter<IntValue>("Maximum Tree Length", "Maximal length of the symbolic expression.", new IntValue(maximumLength)); 167 166 treeDepthParameter = new FixedValueParameter<IntValue>("Maximum Tree Depth", "Maximal depth of the symbolic expression. The minimum depth needed for the algorithm is 3 because two levels are reserved for the ProgramRoot and the Start symbol.", new IntValue(maximumDepth)); 168 167 grammarParameter = new ValueParameter<ISymbolicExpressionGrammar>("Grammar", "The grammar that should be used for symbolic expression tree.", grammar); … … 326 325 analyzer.SymbolicExpressionTreeParameter.ActualName = Name; 327 326 } 327 foreach (var analyzer in analyzers.OfType<SymbolicExpressionTreeLengthAnalyzer>()) { 328 analyzer.MaximumSymbolicExpressionTreeLengthParameter.ActualName = TreeLengthParameter.Name; 329 } 328 330 } 329 331
Note: See TracChangeset
for help on using the changeset viewer.