Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/12/17 14:11:43 (7 years ago)
Author:
pkimmesw
Message:

#2665 Fixed bias 0 issue, PushExpressionFrequencyAnalyzer, Fixed probability for ERC settings, Fixed enable/disable instructions, Added expression descriptions

File:
1 edited

Legend:

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

    r15017 r15032  
    11namespace HeuristicLab.Problems.ProgramSynthesis.Push.Expressions {
    2   using System;
    32  using System.Collections.Generic;
    43
     
    109
    1110  /// <summary>
    12   ///     Removes an indexed item from "deep" in the stack and pushes it on top of the stack.
    13   ///     The index is taken from the INTEGER stack, and the indexing is done after the index is removed.
     11  /// Removes an indexed item from "deep" in the stack and pushes it on top of the stack.
     12  /// The index is taken from the INTEGER stack, and the indexing is done after the index is removed.
    1413  /// </summary>
    1514  /// <typeparam name="T">Stacktype</typeparam>
     
    3231
    3332  [StorableClass]
    34   [PushExpression(StackTypes.Integer, "INTEGER.YANK")]
     33  [PushExpression(
     34    StackTypes.Integer,
     35    "INTEGER.YANK",
     36    "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.")]
    3537  public class IntegerYankExpression : YankExpression<long> {
    3638    public IntegerYankExpression() { }
     
    4850
    4951  [StorableClass]
    50   [PushExpression(StackTypes.Float, "FLOAT.YANK", StackTypes.Integer)]
     52  [PushExpression(
     53    StackTypes.Float,
     54    "FLOAT.YANK",
     55    "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.",
     56    StackTypes.Integer)]
    5157  public class FloatYankExpression : YankExpression<double> {
    5258    public FloatYankExpression() { }
     
    6470
    6571  [StorableClass]
    66   [PushExpression(StackTypes.Boolean, "BOOLEAN.YANK", StackTypes.Integer)]
     72  [PushExpression(
     73    StackTypes.Boolean,
     74    "BOOLEAN.YANK",
     75    "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.",
     76    StackTypes.Integer)]
    6777  public class BooleanYankExpression : YankExpression<bool> {
    6878    public BooleanYankExpression() { }
     
    8090
    8191  [StorableClass]
    82   [PushExpression(StackTypes.Name, "NAME.YANK", StackTypes.Integer)]
     92  [PushExpression(
     93    StackTypes.Name,
     94    "NAME.YANK",
     95    "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.",
     96    StackTypes.Integer)]
    8397  public class NameYankExpression : YankExpression<string> {
    8498    public NameYankExpression() { }
     
    96110
    97111  [StorableClass]
    98   [PushExpression(StackTypes.Exec, "EXEC.YANK", StackTypes.Integer, execIn: 0)]
     112  [PushExpression(
     113    StackTypes.Exec,
     114    "EXEC.YANK",
     115    "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.",
     116    StackTypes.Integer,
     117    execIn: 0)]
    99118  public class ExecYankExpression : YankExpression<Expression> {
    100119    public ExecYankExpression() { }
     
    112131
    113132  [StorableClass]
    114   [PushExpression(StackTypes.Code, "CODE.YANK", StackTypes.Integer)]
     133  [PushExpression(
     134    StackTypes.Code,
     135    "CODE.YANK",
     136    "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.",
     137    StackTypes.Integer)]
    115138  public class CodeYankExpression : YankExpression<Expression> {
    116139    public CodeYankExpression() { }
     
    128151
    129152  [StorableClass]
    130   [PushExpression(StackTypes.Char, "CHAR.YANK", StackTypes.Integer)]
     153  [PushExpression(
     154    StackTypes.Char,
     155    "CHAR.YANK",
     156    "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.",
     157    StackTypes.Integer)]
    131158  public class CharYankExpression : YankExpression<char> {
    132159    public CharYankExpression() { }
     
    144171
    145172  [StorableClass]
    146   [PushExpression(StackTypes.String, "STRING.YANK", StackTypes.Integer)]
     173  [PushExpression(
     174    StackTypes.String,
     175    "STRING.YANK",
     176    "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.",
     177    StackTypes.Integer)]
    147178  public class StringYankExpression : YankExpression<string> {
    148179    public StringYankExpression() { }
     
    160191
    161192  [StorableClass]
    162   [PushExpression(StackTypes.IntegerVector, "INTEGER[].YANK", StackTypes.Integer)]
     193  [PushExpression(
     194    StackTypes.IntegerVector,
     195    "INTEGER[].YANK",
     196    "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.",
     197    StackTypes.Integer)]
    163198  public class IntegerVectorYankExpression : YankExpression<IReadOnlyList<long>> {
    164199    public IntegerVectorYankExpression() { }
     
    176211
    177212  [StorableClass]
    178   [PushExpression(StackTypes.FloatVector, "FLOAT[].YANK", StackTypes.Integer)]
     213  [PushExpression(
     214    StackTypes.FloatVector,
     215    "FLOAT[].YANK",
     216    "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.",
     217    StackTypes.Integer)]
    179218  public class FloatVectorYankExpression : YankExpression<IReadOnlyList<double>> {
    180219    public FloatVectorYankExpression() { }
     
    192231
    193232  [StorableClass]
    194   [PushExpression(StackTypes.BooleanVector, "BOOLEAN[].YANK", StackTypes.Integer)]
     233  [PushExpression(
     234    StackTypes.BooleanVector,
     235    "BOOLEAN[].YANK",
     236    "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.",
     237    StackTypes.Integer)]
    195238  public class BooleanVectorYankExpression : YankExpression<IReadOnlyList<bool>> {
    196239    public BooleanVectorYankExpression() { }
     
    208251
    209252  [StorableClass]
    210   [PushExpression(StackTypes.StringVector, "STRING[].YANK", StackTypes.Integer)]
     253  [PushExpression(
     254    StackTypes.StringVector,
     255    "STRING[].YANK",
     256    "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.",
     257    StackTypes.Integer)]
    211258  public class StringVectorYankExpression : YankExpression<IReadOnlyList<string>> {
    212259    public StringVectorYankExpression() { }
Note: See TracChangeset for help on using the changeset viewer.