Changeset 14485
- Timestamp:
- 12/13/16 11:47:54 (8 years ago)
- Location:
- branches/HeuristicLab.ExpressionGenerator/HeuristicLab.ExpressionGenerator/3.4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.ExpressionGenerator/HeuristicLab.ExpressionGenerator/3.4
- Property svn:ignore
-
old new 9 9 GeneratedArtifacts 10 10 _Pvt_Extensions 11 Plugin.cs
-
- Property svn:ignore
-
branches/HeuristicLab.ExpressionGenerator/HeuristicLab.ExpressionGenerator/3.4/ExpressionTemplate.cs
r14480 r14485 48 48 } 49 49 50 public void AddArgument(Expression expression, double priority= 1d) {50 public void AddArgument(Expression expression, double weight = 1d) { 51 51 arguments = arguments ?? new List<Tuple<Expression, double>>(); 52 arguments.Add(Tuple.Create(expression, priority));52 arguments.Add(Tuple.Create(expression, weight)); 53 53 } 54 54 … … 58 58 } 59 59 60 public void AddArguments(IEnumerable<Expression> expressions, IEnumerable<double> priorities) {60 public void AddArguments(IEnumerable<Expression> expressions, IEnumerable<double> weights) { 61 61 arguments = arguments ?? new List<Tuple<Expression, double>>(); 62 arguments.AddRange(expressions.Zip( priorities, Tuple.Create));62 arguments.AddRange(expressions.Zip(weights, Tuple.Create)); 63 63 } 64 64 } -
branches/HeuristicLab.ExpressionGenerator/HeuristicLab.ExpressionGenerator/3.4/Interfaces/IExpression.cs
r14410 r14485 29 29 public interface IExpression { 30 30 ExpressionType Type { get; } 31 Func<IEnumerable<double>, double> Transform { get; } 31 Func<IEnumerable<double>, double> Transform { get; } // gkronber: better name? 32 32 IEnumerable<Expression> Arguments { get; } 33 IRandom Distribution { get; } 34 double Value { get; } 33 IRandom Distribution { get; } 34 double Value { get; } 35 35 } 36 36 }
Note: See TracChangeset
for help on using the changeset viewer.