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

    r15017 r15032  
    88  using Stack;
    99
    10   [PushExpression(StackTypes.Char, "CHAR.ISWHITESPACE", StackTypes.Boolean)]
     10  /// <summary>
     11  /// Pushes TRUE onto the BOOLEAN stack if the top char represents a whitespace char, otherwise FALSE.
     12  /// </summary>
     13  [PushExpression(
     14    StackTypes.Char,
     15    "CHAR.ISWHITESPACE",
     16    "Pushes TRUE onto the BOOLEAN stack if the top char represents a whitespace char, otherwise FALSE.",
     17    StackTypes.Boolean)]
    1118  [StorableClass]
    1219  public class CharIsWhitespaceExpression : StatelessExpression {
     
    2532  }
    2633
    27   [PushExpression(StackTypes.Char, "CHAR.ISLETTER", StackTypes.Boolean)]
     34  /// <summary>
     35  /// Pushes TRUE onto the CHAR stack if the top char represents a letter, otherwise FALSE.
     36  /// </summary>
     37  [PushExpression(
     38    StackTypes.Char,
     39    "CHAR.ISLETTER",
     40    "Pushes TRUE onto the CHAR stack if the top char represents a letter, otherwise FALSE.",
     41    StackTypes.Boolean)]
    2842  [StorableClass]
    2943  public class CharIsLetterExpression : StatelessExpression {
     
    4256  }
    4357
    44   [PushExpression(StackTypes.Char, "CHAR.ISDIGIT", StackTypes.Boolean)]
     58  /// <summary>
     59  /// Pushes TRUE onto the CHAR stack if the top char represents a digit, otherwise FALSE.
     60  /// </summary>
     61  [PushExpression(
     62    StackTypes.Char,
     63    "CHAR.ISDIGIT",
     64    "Pushes TRUE onto the CHAR stack if the top char represents a digit, otherwise FALSE.",
     65    StackTypes.Boolean)]
    4566  [StorableClass]
    4667  public class CharIsDigitExpression : StatelessExpression {
     
    5980  }
    6081
    61   [PushExpression(StackTypes.Char, "CHAR.FROMINTEGER", StackTypes.Integer)]
     82  /// <summary>
     83  /// Takes the top integer, converts it to an char using ASCII encoding and pushes this char onto the CHAR stack.
     84  /// </summary>
     85  [PushExpression(
     86    StackTypes.Char,
     87    "CHAR.FROMINTEGER",
     88    "Takes the top integer, converts it to an char using ASCII encoding and pushes this char onto the CHAR stack.",
     89    StackTypes.Integer)]
    6290  [StorableClass]
    6391  public class CharFromIntegerExpression : StatelessExpression {
     
    78106  }
    79107
    80   [PushExpression(StackTypes.Char, "CHAR.FROMFLOAT", StackTypes.Float)]
     108  /// <summary>
     109  /// Takes the top float, casts it to an integer, converts it to an char using ASCII encoding and pushes this char onto the CHAR stack.
     110  /// </summary>
     111  [PushExpression(
     112    StackTypes.Char,
     113    "CHAR.FROMFLOAT",
     114    "Takes the top float, casts it to an integer, converts it to an char using ASCII encoding and pushes this char onto the CHAR stack.",
     115    StackTypes.Float)]
    81116  [StorableClass]
    82117  public class CharFromFloatExpression : StatelessExpression {
     
    97132  }
    98133
    99   [PushExpression(StackTypes.Char, "CHAR.ALLFROMSTRING", StackTypes.String)]
     134  /// <summary>
     135  /// Takes the top string and pushes the chars of this string onto the CHAR stack in reversed order.
     136  /// </summary>
     137  [PushExpression(
     138    StackTypes.Char,
     139    "CHAR.ALLFROMSTRING",
     140    "Takes the top string and pushes the chars of this string onto the CHAR stack in reversed order.",
     141    StackTypes.String)]
    100142  [StorableClass]
    101143  public class CharAllFromStringExpression : StatelessExpression {
Note: See TracChangeset for help on using the changeset viewer.