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

    r15017 r15032  
    99
    1010  /// <summary>
    11   ///     Pushes the sum of the top two items.
    12   /// </summary>
    13   [PushExpression(StackTypes.Integer, "INTEGER.+")]
     11  /// Pushes the sum of the top two items.
     12  /// </summary>
     13  [PushExpression(
     14    StackTypes.Integer,
     15    "INTEGER.+",
     16    "Pushes the sum of the top two items.")]
    1417  [StorableClass]
    1518  public class IntegerAddExpression : StatelessExpression {
     
    3235
    3336  /// <summary>
    34   ///     Pushes the difference of the top two items; that is, the second item minus the top item.
    35   /// </summary>
    36   [PushExpression(StackTypes.Integer, "INTEGER.-")]
     37  /// Pushes the difference of the top two items; that is, the second item minus the top item.
     38  /// </summary>
     39  [PushExpression(
     40    StackTypes.Integer,
     41    "INTEGER.-",
     42    "Pushes the difference of the top two items; that is, the second item minus the top item.")]
    3743  [StorableClass]
    3844  public class IntegerSubtractExpression : StatelessExpression {
     
    5561
    5662  /// <summary>
    57   ///     Pushes the product of the top two items.
    58   /// </summary>
    59   [PushExpression(StackTypes.Integer, "INTEGER.*")]
     63  /// Pushes the product of the top two items.
     64  /// </summary>
     65  [PushExpression(
     66    StackTypes.Integer,
     67    "INTEGER.*",
     68    "Pushes the product of the top two items.")]
    6069  [StorableClass]
    6170  public class IntegerMultiplyExpression : StatelessExpression {
     
    7887
    7988  /// <summary>
    80   ///     Pushes the quotient of the top two items; that is, the second item divided by the top item.
    81   ///     If the top item is zero this acts as a NOOP.
    82   /// </summary>
    83   [PushExpression(StackTypes.Integer, "INTEGER./")]
     89  /// Pushes the quotient of the top two items; that is, the second item divided by the top item.
     90  /// If the top item is zero this acts as a NOOP.
     91  /// </summary>
     92  [PushExpression(
     93    StackTypes.Integer,
     94    "INTEGER./",
     95    "Pushes the quotient of the top two items; that is, the second item divided by the top item. If the top item is zero this acts as a NOOP.")]
    8496  [StorableClass]
    8597  public class IntegerDivideExpression : StatelessExpression {
     
    102114
    103115  /// <summary>
    104   ///     Pushes the second stack item modulo the top stack item. If the top item is zero this acts as a NOOP. The modulus is
    105   ///     computed as the remainder of the quotient, where the quotient has first been truncated toward negative infinity. (This is taken
    106   ///     from the definition for the generic MOD function in Common Lisp, which is described for example at
    107   ///     http://www.lispworks.com/reference/HyperSpec/Body/f_mod_r.htm.)
    108   /// </summary>
    109   [PushExpression(StackTypes.Integer, "INTEGER.%")]
     116  /// Pushes the second stack item modulo the top stack item. If the top item is zero this acts as a NOOP.
     117  /// </summary>
     118  [PushExpression(
     119    StackTypes.Integer,
     120    "INTEGER.%",
     121    "Pushes the second stack item modulo the top stack item. If the top item is zero this acts as a NOOP.")]
    110122  [StorableClass]
    111123  public class IntegerModuloExpression : StatelessExpression {
     
    128140
    129141  /// <summary>
    130   ///     Pushes the minimum of the top two items.
    131   /// </summary>
    132   [PushExpression(StackTypes.Integer, "INTEGER.MIN")]
     142  /// Pushes the minimum of the top two items.
     143  /// </summary>
     144  [PushExpression(
     145    StackTypes.Integer,
     146    "INTEGER.MIN",
     147    "Pushes the minimum of the top two items.")]
    133148  [StorableClass]
    134149  public class IntegerMinExpression : StatelessExpression {
     
    151166
    152167  /// <summary>
    153   ///     Pushes the maximum of the top two items.
    154   /// </summary>
    155   [PushExpression(StackTypes.Integer, "INTEGER.MAX")]
     168  /// Pushes the maximum of the top two items.
     169  /// </summary>
     170  [PushExpression(
     171    StackTypes.Integer,
     172    "INTEGER.MAX",
     173    "Pushes the maximum of the top two items.")]
    156174  [StorableClass]
    157175  public class IntegerMaxExpression : StatelessExpression {
     
    174192
    175193  /// <summary>
    176   ///     Pushes TRUE onto the BOOLEAN stack if the second item is less than the top item, or FALSE otherwise.
    177   /// </summary>
    178   [PushExpression(StackTypes.Integer, "INTEGER.<", StackTypes.Boolean)]
     194  /// Pushes TRUE onto the BOOLEAN stack if the second item is less than the top item, or FALSE otherwise.
     195  /// </summary>
     196  [PushExpression(
     197    StackTypes.Integer,
     198    "INTEGER.<",
     199    "Pushes TRUE onto the BOOLEAN stack if the second item is less than the top item, or FALSE otherwise.",
     200    StackTypes.Boolean)]
    179201  [StorableClass]
    180202  public class IntegerSmallerThanExpression : StatelessExpression {
     
    198220
    199221  /// <summary>
    200   ///     Pushes TRUE onto the BOOLEAN stack if the second item is less than or equal to the top item, or FALSE otherwise.
    201   /// </summary>
    202   [PushExpression(StackTypes.Integer, "INTEGER.<=", StackTypes.Boolean)]
     222  /// Pushes TRUE onto the BOOLEAN stack if the second item is less than or equal to the top item, or FALSE otherwise.
     223  /// </summary>
     224  [PushExpression(
     225    StackTypes.Integer,
     226    "INTEGER.<=",
     227    "Pushes TRUE onto the BOOLEAN stack if the second item is less than or equal to the top item, or FALSE otherwise.",
     228    StackTypes.Boolean)]
    203229  [StorableClass]
    204230  public class IntegerSmallerOrEqualToExpression : StatelessExpression {
     
    222248
    223249  /// <summary>
    224   ///     Pushes TRUE onto the BOOLEAN stack if the second item is greater than the top item, or FALSE otherwise.
    225   /// </summary>
    226   [PushExpression(StackTypes.Integer, "INTEGER.>", StackTypes.Boolean)]
     250  /// Pushes TRUE onto the BOOLEAN stack if the second item is greater than the top item, or FALSE otherwise.
     251  /// </summary>
     252  [PushExpression(
     253    StackTypes.Integer,
     254    "INTEGER.>",
     255    "Pushes TRUE onto the BOOLEAN stack if the second item is greater than the top item, or FALSE otherwise.",
     256    StackTypes.Boolean)]
    227257  [StorableClass]
    228258  public class IntegerGreaterThanExpression : StatelessExpression {
     
    247277
    248278  /// <summary>
    249   ///     Pushes TRUE onto the BOOLEAN stack if the second item is greater than or equal to the top item, or FALSE otherwise.
    250   /// </summary>
    251   [PushExpression(StackTypes.Integer, "INTEGER.>=", StackTypes.Boolean)]
     279  /// Pushes TRUE onto the BOOLEAN stack if the second item is greater than or equal to the top item, or FALSE otherwise.
     280  /// </summary>
     281  [PushExpression(
     282    StackTypes.Integer,
     283    "INTEGER.>=",
     284    "Pushes TRUE onto the BOOLEAN stack if the second item is greater than or equal to the top item, or FALSE otherwise.",
     285    StackTypes.Boolean)]
    252286  [StorableClass]
    253287  public class IntegerGreaterOrEqualToExpression : StatelessExpression {
     
    271305
    272306  /// <summary>
    273   ///     Pushes 1 if the top BOOLEAN is TRUE, or 0 if the top BOOLEAN is FALSE.
    274   /// </summary>
    275   [PushExpression(StackTypes.Integer, "INTEGER.FROMBOOLEAN", StackTypes.Boolean)]
     307  /// Pushes 1 if the top BOOLEAN is TRUE, or 0 if the top BOOLEAN is FALSE.
     308  /// </summary>
     309  [PushExpression(
     310    StackTypes.Integer,
     311    "INTEGER.FROMBOOLEAN",
     312    "Pushes 1 if the top BOOLEAN is TRUE, or 0 if the top BOOLEAN is FALSE.",
     313    StackTypes.Boolean)]
    276314  [StorableClass]
    277315  public class IntegerFromBooleanExpression : StatelessExpression {
     
    292330
    293331  /// <summary>
    294   ///     Pushes the result of truncating the top FLOAT.
    295   /// </summary>
    296   [PushExpression(StackTypes.Integer, "INTEGER.FROMFLOAT", StackTypes.Float)]
     332  /// Pushes the result of truncating the top FLOAT.
     333  /// </summary>
     334  [PushExpression(
     335    StackTypes.Integer,
     336    "INTEGER.FROMFLOAT",
     337    "Pushes the result of truncating the top FLOAT.",
     338    StackTypes.Float)]
    297339  [StorableClass]
    298340  public class IntegerFromFloatExpression : StatelessExpression {
     
    312354
    313355  /// <summary>
    314   ///     Pushes the result of truncating the top CHAR.
    315   /// </summary>
    316   [PushExpression(StackTypes.Integer, "INTEGER.FROMCHAR", StackTypes.Char)]
     356  /// Pushes the result of truncating the top CHAR.
     357  /// </summary>
     358  [PushExpression(
     359    StackTypes.Integer,
     360    "INTEGER.FROMCHAR",
     361    "Pushes the result of truncating the top CHAR.",
     362    StackTypes.Char)]
    317363  [StorableClass]
    318364  public class IntegerFromCharExpression : StatelessExpression {
     
    332378
    333379  /// <summary>
    334   ///     Pushes the result of parsing the top STRING.
    335   /// </summary>
    336   [PushExpression(StackTypes.Integer, "INTEGER.FROMSTRING", StackTypes.String)]
     380  /// Pushes the result of parsing the top STRING.
     381  /// </summary>
     382  [PushExpression(
     383    StackTypes.Integer,
     384    "INTEGER.FROMSTRING",
     385    "Pushes the result of parsing the top STRING.",
     386    StackTypes.String)]
    337387  [StorableClass]
    338388  public class IntegerFromStringExpression : StatelessExpression {
     
    357407
    358408  /// <summary>
    359   ///     Pushes the result of increasing the top INTEGER by 1.
    360   /// </summary>
    361   [PushExpression(StackTypes.Integer, "INTEGER.INC")]
     409  /// Pushes the result of increasing the top INTEGER by 1.
     410  /// </summary>
     411  [PushExpression(
     412    StackTypes.Integer,
     413    "INTEGER.INC",
     414    "Pushes the result of increasing the top INTEGER by 1.")]
    362415  [StorableClass]
    363416  public class IntegerIncExpression : StatelessExpression {
     
    376429
    377430  /// <summary>
    378   ///     Pushes the result of decreasing the top INTEGER by 1.
    379   /// </summary>
    380   [PushExpression(StackTypes.Integer, "INTEGER.DEC")]
     431  /// Pushes the result of decreasing the top INTEGER by 1.
     432  /// </summary>
     433  [PushExpression(
     434    StackTypes.Integer,
     435    "INTEGER.DEC",
     436    "Pushes the result of decreasing the top INTEGER by 1.")]
    381437  [StorableClass]
    382438  public class IntegerDecExpression : StatelessExpression {
Note: See TracChangeset for help on using the changeset viewer.