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/YankDuplicateExpressions.cs

    r15017 r15032  
    1111
    1212  /// <summary>
    13   ///     Pushes a copy of an indexed item "deep" in the stack onto the top of the stack, without removing the deep item.
    14   ///     The index is taken from the INTEGER stack, and the indexing is done after the index is removed.
     13  /// Pushes a copy of an indexed item "deep" in the stack onto the top of the stack, without removing the deep item.
     14  /// The index is taken from the INTEGER stack, and the indexing is done after the index is removed.
    1515  /// </summary>
    1616  /// <typeparam name="T">Stacktype</typeparam>
     
    3333
    3434  [StorableClass]
    35   [PushExpression(StackTypes.Integer, "INTEGER.YANKDUP")]
     35  [PushExpression(
     36    StackTypes.Integer,
     37    "INTEGER.YANKDUP",
     38    "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.")]
    3639  public class IntegerYankDuplicateExpression : YankDuplicateExpression<long> {
    3740    public IntegerYankDuplicateExpression() { }
     
    4952
    5053  [StorableClass]
    51   [PushExpression(StackTypes.Float, "FLOAT.YANKDUP", StackTypes.Integer)]
     54  [PushExpression(
     55    StackTypes.Float,
     56    "FLOAT.YANKDUP",
     57    "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.",
     58    StackTypes.Integer)]
    5259  public class FloatYankDuplicateExpression : YankDuplicateExpression<double> {
    5360    public FloatYankDuplicateExpression() { }
     
    6572
    6673  [StorableClass]
    67   [PushExpression(StackTypes.Boolean, "BOOLEAN.YANKDUP", StackTypes.Integer)]
     74  [PushExpression(
     75    StackTypes.Boolean,
     76    "BOOLEAN.YANKDUP",
     77    "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.",
     78    StackTypes.Integer)]
    6879  public class BooleanYankDuplicateExpression : YankDuplicateExpression<bool> {
    6980    public BooleanYankDuplicateExpression() { }
     
    8192
    8293  [StorableClass]
    83   [PushExpression(StackTypes.Name, "NAME.YANKDUP", StackTypes.Integer)]
     94  [PushExpression(
     95    StackTypes.Name,
     96    "NAME.YANKDUP",
     97    "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.",
     98    StackTypes.Integer)]
    8499  public class NameYankDuplicateExpression : YankDuplicateExpression<string> {
    85100    public NameYankDuplicateExpression() { }
     
    97112
    98113  [StorableClass]
    99   [PushExpression(StackTypes.Exec, "EXEC.YANKDUP", StackTypes.Integer, execIn: 0)]
     114  [PushExpression(
     115    StackTypes.Exec,
     116    "EXEC.YANKDUP",
     117    "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.",
     118    StackTypes.Integer, execIn: 0)]
    100119  public class ExecYankDuplicateExpression : YankDuplicateExpression<Expression> {
    101120    public ExecYankDuplicateExpression() { }
     
    113132
    114133  [StorableClass]
    115   [PushExpression(StackTypes.Code, "CODE.YANKDUP", StackTypes.Integer)]
     134  [PushExpression(
     135    StackTypes.Code,
     136    "CODE.YANKDUP",
     137    "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.",
     138    StackTypes.Integer)]
    116139  public class CodeYankDuplicateExpression : YankDuplicateExpression<Expression> {
    117140    public CodeYankDuplicateExpression() { }
     
    129152
    130153  [StorableClass]
    131   [PushExpression(StackTypes.Char, "CHAR.YANKDUP", StackTypes.Integer)]
     154  [PushExpression(
     155    StackTypes.Char,
     156    "CHAR.YANKDUP",
     157    "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.",
     158    StackTypes.Integer)]
    132159  public class CharYankDuplicateExpression : YankDuplicateExpression<char> {
    133160    public CharYankDuplicateExpression() { }
     
    145172
    146173  [StorableClass]
    147   [PushExpression(StackTypes.String, "STRING.YANKDUP", StackTypes.Integer)]
     174  [PushExpression(
     175    StackTypes.String,
     176    "STRING.YANKDUP",
     177    "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.",
     178    StackTypes.Integer)]
    148179  public class StringYankDuplicateExpression : YankDuplicateExpression<string> {
    149180    public StringYankDuplicateExpression() { }
     
    161192
    162193  [StorableClass]
    163   [PushExpression(StackTypes.IntegerVector, "INTEGER[].YANKDUP", StackTypes.Integer)]
     194  [PushExpression(
     195    StackTypes.IntegerVector,
     196    "INTEGER[].YANKDUP",
     197    "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.",
     198    StackTypes.Integer)]
    164199  public class IntegerVectorYankDuplicateExpression : YankDuplicateExpression<IReadOnlyList<long>> {
    165200    public IntegerVectorYankDuplicateExpression() { }
     
    177212
    178213  [StorableClass]
    179   [PushExpression(StackTypes.FloatVector, "FLOAT[].YANKDUP", StackTypes.Integer)]
     214  [PushExpression(
     215    StackTypes.FloatVector,
     216    "FLOAT[].YANKDUP",
     217    "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.",
     218    StackTypes.Integer)]
    180219  public class FloatVectorYankDuplicateExpression : YankDuplicateExpression<IReadOnlyList<double>> {
    181220    public FloatVectorYankDuplicateExpression() { }
     
    193232
    194233  [StorableClass]
    195   [PushExpression(StackTypes.BooleanVector, "BOOLEAN[].YANKDUP", StackTypes.Integer)]
     234  [PushExpression(
     235    StackTypes.BooleanVector,
     236    "BOOLEAN[].YANKDUP",
     237    "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.",
     238    StackTypes.Integer)]
    196239  public class BooleanVectorYankDuplicateExpression : YankDuplicateExpression<IReadOnlyList<bool>> {
    197240    public BooleanVectorYankDuplicateExpression() { }
     
    209252
    210253  [StorableClass]
    211   [PushExpression(StackTypes.StringVector, "STRING[].YANKDUP", StackTypes.Integer)]
     254  [PushExpression(
     255    StackTypes.StringVector,
     256    "STRING[].YANKDUP",
     257    "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.",
     258    StackTypes.Integer)]
    212259  public class StringVectorYankDuplicateExpression : YankDuplicateExpression<IReadOnlyList<string>> {
    213260    public StringVectorYankDuplicateExpression() { }
Note: See TracChangeset for help on using the changeset viewer.