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

    r15017 r15032  
    1111
    1212  /// <summary>
    13   ///     Pushes a random NAME.
    14   /// </summary>
    15   [PushExpression(StackTypes.Name, "NAME.RAND")]
     13  /// Pushes a random already defined name or a new one onto the NAME stack.
     14  /// </summary>
     15  [PushExpression(
     16    StackTypes.Name,
     17    "NAME.RAND",
     18    "Pushes a random already defined name or a new one based on the Name-ERC-Options onto the NAME stack.")]
    1619  [StorableClass]
    1720  public class NameRandExpression : StatelessExpression {
     
    3134
    3235  /// <summary>
    33   ///     Pushes a random integer.
    34   /// </summary>
    35   [PushExpression(StackTypes.Integer, "INTEGER.RAND")]
     36  /// Pushes a random integer.
     37  /// </summary>
     38  [PushExpression(
     39    StackTypes.Integer,
     40    "INTEGER.RAND",
     41    "Pushes a random integer based on the Integer-ERC-Options  onto the INTEGER stack.")]
    3642  [StorableClass]
    3743  public class IntegerRandExpression : StatelessExpression {
     
    5157
    5258  /// <summary>
    53   ///     Pushes a random float.
    54   /// </summary>
    55   [PushExpression(StackTypes.Float, "FLOAT.RAND")]
     59  ///  Pushes a random float.
     60  /// </summary>
     61  [PushExpression(
     62    StackTypes.Float,
     63    "FLOAT.RAND",
     64    "Pushes a random float based on the Float-ERC-Options onto the FLOAT stack.")]
    5665  [StorableClass]
    5766  public class FloatRandExpression : StatelessExpression {
     
    7382  ///     Pushes a random boolean.
    7483  /// </summary>
    75   [PushExpression(StackTypes.Boolean, "BOOLEAN.RAND")]
     84  [PushExpression(
     85    StackTypes.Boolean,
     86    "BOOLEAN.RAND",
     87    "Pushes a random boolean based on the Boolean-ERC-Options onto the BOOLEAN stack.")]
    7688  [StorableClass]
    7789  public class BooleanRandExpression : StatelessExpression {
     
    93105  ///     Pushes random expressions onto the code stack.
    94106  /// </summary>
    95   [PushExpression(StackTypes.Code, "CODE.RAND")]
     107  [PushExpression(
     108    StackTypes.Code,
     109    "CODE.RAND",
     110    "Pushes a random code onto the CODE stack.")]
    96111  [StorableClass]
    97112  public class CodeRandExpression : StatelessExpression {
     
    121136  ///     Pushes a random char.
    122137  /// </summary>
    123   [PushExpression(StackTypes.Char, "CHAR.RAND")]
     138  [PushExpression(
     139    StackTypes.Char,
     140    "CHAR.RAND",
     141    "Pushes a random char based on the Char-ERC-Options onto the CHAR stack.")]
    124142  [StorableClass]
    125143  public class CharRandExpression : StatelessExpression {
     
    140158    ///     Pushes a random string.
    141159    /// </summary>
    142     [PushExpression(StackTypes.String, "STRING.RAND")]
     160    [PushExpression(
     161      StackTypes.String,
     162      "STRING.RAND",
     163      "Pushes a random string based on the String-ERC-Options onto the STRING stack.")]
    143164    [StorableClass]
    144165    public class StringRandExpression : StatelessExpression {
     
    159180      ///     Pushes a random interger vector.
    160181      /// </summary>
    161       [PushExpression(StackTypes.IntegerVector, "INTEGER[].RAND")]
     182      [PushExpression(
     183        StackTypes.IntegerVector,
     184        "INTEGER[].RAND",
     185        "Pushes a random integer vector based on the Integer-Vector-ERC-Options onto the INTEGER[] stack.")]
    162186      [StorableClass]
    163187      public class IntegerVectorRandExpression : StatelessExpression {
     
    179203      ///     Pushes a random float vector.
    180204      /// </summary>
    181       [PushExpression(StackTypes.FloatVector, "FLOAT[].RAND")]
     205      [PushExpression(
     206        StackTypes.FloatVector,
     207        "FLOAT[].RAND",
     208        "Pushes a random float vector based on the Float-Vector-ERC-Options onto the FLOAT[] stack.")]
    182209      [StorableClass]
    183210      public class FloatVectorRandExpression : StatelessExpression {
     
    199226      ///     Pushes a random boolean vector.
    200227      /// </summary>
    201       [PushExpression(StackTypes.StringVector, "STRING[].RAND")]
     228      [PushExpression(
     229        StackTypes.StringVector,
     230        "STRING[].RAND",
     231        "Pushes a random string vector based on the String-Vector-ERC-Options onto the STRING[] stack.")]
    202232      [StorableClass]
    203233      public class StringVectorRandExpression : StatelessExpression {
Note: See TracChangeset for help on using the changeset viewer.