Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/18/17 01:15:25 (8 years ago)
Author:
pkimmesw
Message:

#2665 BenchmarkSuite, all examples, partially tested, VectorExpressions added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/PushExpressions.cs

    r14834 r14875  
    9696    }
    9797  }
     98
     99  public class FloatVectorPushExpression : PushExpression<List<double>> {
     100    public FloatVectorPushExpression(List<double> state)
     101      : base(state) {
     102    }
     103
     104    public override bool Eval(IInternalPushInterpreter interpreter) {
     105      return Eval(interpreter.FloatVectorStack);
     106    }
     107  }
     108
     109  public class BooleanVectorPushExpression : PushExpression<List<bool>> {
     110    public BooleanVectorPushExpression(List<bool> state)
     111      : base(state) {
     112    }
     113
     114    public override bool Eval(IInternalPushInterpreter interpreter) {
     115      return Eval(interpreter.BooleanVectorStack);
     116    }
     117  }
     118
     119  public class StringVectorPushExpression : PushExpression<List<string>> {
     120    public StringVectorPushExpression(List<string> state)
     121      : base(state) {
     122    }
     123
     124    public override bool Eval(IInternalPushInterpreter interpreter) {
     125      return Eval(interpreter.StringVectorStack);
     126    }
     127  }
    98128}
Note: See TracChangeset for help on using the changeset viewer.