Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/15/17 08:44:15 (7 years ago)
Author:
gkronber
Message:

#2704: added possibility to automatically adjust constants based on the distributions of evaluated expressions to allow limiting distributions for arguments of functions (e.g. log should have positive args only, exp should have rather small args only)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.ExpressionGenerator/HeuristicLab.ExpressionGenerator/3.4/ExpressionEvaluator.cs

    r14409 r14873  
    5757
    5858    public Dictionary<Expression, List<double>> GenerateData(Expression expression, int rows) {
     59      return GenerateData(new [] {expression}, rows);
     60    }
     61    public Dictionary<Expression, List<double>> GenerateData(IEnumerable<Expression> expressions, int rows) {
    5962      var data = new Dictionary<Expression, List<double>>();
    6063      for (int i = 0; i < rows; ++i) {
    6164        evaluationCache.Clear();
    62         Evaluate(expression);
     65        foreach(var expr in expressions) Evaluate(expr);
    6366        foreach (var pair in evaluationCache) {
    6467          if (!data.ContainsKey(pair.Key))
Note: See TracChangeset for help on using the changeset viewer.