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

    r15017 r15032  
    2424
    2525  [StorableClass]
    26   [PushExpression(StackTypes.Integer, "INTEGER.SWAP")]
     26  [PushExpression(
     27    StackTypes.Integer,
     28    "INTEGER.SWAP",
     29    "Swaps the top two items on the stack.")]
    2730  public class IntegerSwapExpression : SwapExpression<long> {
    2831    public IntegerSwapExpression() { }
     
    4043
    4144  [StorableClass]
    42   [PushExpression(StackTypes.Float, "FLOAT.SWAP")]
     45  [PushExpression(
     46    StackTypes.Float,
     47    "FLOAT.SWAP",
     48    "Swaps the top two items on the stack.")]
    4349  public class FloatSwapExpression : SwapExpression<double> {
    4450    public FloatSwapExpression() { }
     
    5662
    5763  [StorableClass]
    58   [PushExpression(StackTypes.Boolean, "BOOLEAN.SWAP")]
     64  [PushExpression(
     65    StackTypes.Boolean,
     66    "BOOLEAN.SWAP",
     67    "Swaps the top two items on the stack.")]
    5968  public class BooleanSwapExpression : SwapExpression<bool> {
    6069    public BooleanSwapExpression() { }
     
    7281
    7382  [StorableClass]
    74   [PushExpression(StackTypes.Name, "NAME.SWAP")]
     83  [PushExpression(
     84    StackTypes.Name,
     85    "NAME.SWAP",
     86    "Swaps the top two items on the stack.")]
    7587  public class NameSwapExpression : SwapExpression<string> {
    7688    public NameSwapExpression() { }
     
    88100
    89101  [StorableClass]
    90   [PushExpression(StackTypes.Exec, "EXEC.SWAP", execIn: 2)]
     102  [PushExpression(
     103    StackTypes.Exec,
     104    "EXEC.SWAP",
     105    "Swaps the top two items on the stack.",
     106    execIn: 2)]
    91107  public class ExecSwapExpression : SwapExpression<Expression> {
    92108    public ExecSwapExpression() { }
     
    104120
    105121  [StorableClass]
    106   [PushExpression(StackTypes.Code, "CODE.SWAP")]
     122  [PushExpression(
     123    StackTypes.Code,
     124    "CODE.SWAP",
     125    "Swaps the top two items on the stack.")]
    107126  public class CodeSwapExpression : SwapExpression<Expression> {
    108127    public CodeSwapExpression() { }
     
    120139
    121140  [StorableClass]
    122   [PushExpression(StackTypes.Char, "CHAR.SWAP")]
     141  [PushExpression(
     142    StackTypes.Char,
     143    "CHAR.SWAP",
     144    "Swaps the top two items on the stack.")]
    123145  public class CharSwapExpression : SwapExpression<char> {
    124146    public CharSwapExpression() { }
     
    136158
    137159  [StorableClass]
    138   [PushExpression(StackTypes.String, "STRING.SWAP")]
     160  [PushExpression(
     161    StackTypes.String,
     162    "STRING.SWAP",
     163    "Swaps the top two items on the stack.")]
    139164  public class StringSwapExpression : SwapExpression<string> {
    140165    public StringSwapExpression() { }
     
    152177
    153178  [StorableClass]
    154   [PushExpression(StackTypes.IntegerVector, "INTEGER[].SWAP")]
     179  [PushExpression(
     180    StackTypes.IntegerVector,
     181    "INTEGER[].SWAP",
     182    "Swaps the top two items on the stack.")]
    155183  public class IntegerVectorSwapExpression : SwapExpression<IReadOnlyList<long>> {
    156184    public IntegerVectorSwapExpression() { }
     
    168196
    169197  [StorableClass]
    170   [PushExpression(StackTypes.FloatVector, "FLOAT[].SWAP")]
     198  [PushExpression(
     199    StackTypes.FloatVector,
     200    "FLOAT[].SWAP",
     201    "Swaps the top two items on the stack.")]
    171202  public class FloatVectorSwapExpression : SwapExpression<IReadOnlyList<double>> {
    172203    public FloatVectorSwapExpression() { }
     
    184215
    185216  [StorableClass]
    186   [PushExpression(StackTypes.BooleanVector, "BOOLEAN[].SWAP")]
     217  [PushExpression(
     218    StackTypes.BooleanVector,
     219    "BOOLEAN[].SWAP",
     220    "Swaps the top two items on the stack.")]
    187221  public class BooleanVectorSwapExpression : SwapExpression<IReadOnlyList<bool>> {
    188222    public BooleanVectorSwapExpression() { }
     
    200234
    201235  [StorableClass]
    202   [PushExpression(StackTypes.StringVector, "STRING[].SWAP")]
     236  [PushExpression(
     237    StackTypes.StringVector,
     238    "STRING[].SWAP",
     239    "Swaps the top two items on the stack.")]
    203240  public class StringVectorSwapExpression : SwapExpression<IReadOnlyList<string>> {
    204241    public StringVectorSwapExpression() { }
Note: See TracChangeset for help on using the changeset viewer.