Changeset 14485


Ignore:
Timestamp:
12/13/16 11:47:54 (4 years ago)
Author:
gkronber
Message:

minor changes made while reviewing

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  
        99GeneratedArtifacts
        1010_Pvt_Extensions
         11Plugin.cs
  • branches/HeuristicLab.ExpressionGenerator/HeuristicLab.ExpressionGenerator/3.4/ExpressionTemplate.cs

    r14480 r14485  
    4848    }
    4949
    50     public void AddArgument(Expression expression, double priority = 1d) {
     50    public void AddArgument(Expression expression, double weight = 1d) {
    5151      arguments = arguments ?? new List<Tuple<Expression, double>>();
    52       arguments.Add(Tuple.Create(expression, priority));
     52      arguments.Add(Tuple.Create(expression, weight));
    5353    }
    5454
     
    5858    }
    5959
    60     public void AddArguments(IEnumerable<Expression> expressions, IEnumerable<double> priorities) {
     60    public void AddArguments(IEnumerable<Expression> expressions, IEnumerable<double> weights) {
    6161      arguments = arguments ?? new List<Tuple<Expression, double>>();
    62       arguments.AddRange(expressions.Zip(priorities, Tuple.Create));
     62      arguments.AddRange(expressions.Zip(weights, Tuple.Create));
    6363    }
    6464  }
  • branches/HeuristicLab.ExpressionGenerator/HeuristicLab.ExpressionGenerator/3.4/Interfaces/IExpression.cs

    r14410 r14485  
    2929  public interface IExpression {
    3030    ExpressionType Type { get; }
    31     Func<IEnumerable<double>, double> Transform { get; }
     31    Func<IEnumerable<double>, double> Transform { get; } // gkronber: better name?
    3232    IEnumerable<Expression> Arguments { get; }
    33     IRandom Distribution { get; }
    34     double Value { get; }
     33    IRandom Distribution { get; } 
     34    double Value { get; } 
    3535  }
    3636}
Note: See TracChangeset for help on using the changeset viewer.