Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4989


Ignore:
Timestamp:
11/29/10 13:57:05 (14 years ago)
Author:
gkronber
Message:

Renamed "nu" => "mu". #1302

Location:
trunk/sources
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/ConstantView.Designer.cs

    r3915 r4989  
    5454      this.valueChangeSigmaTextBox = new System.Windows.Forms.TextBox();
    5555      this.meanWeightChangeLabel = new System.Windows.Forms.Label();
    56       this.valueChangeNuTextBox = new System.Windows.Forms.TextBox();
     56      this.valueChangeMuTextBox = new System.Windows.Forms.TextBox();
    5757      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    5858      this.initializationGroupBox.SuspendLayout();
     
    146146      this.mutationGroupBox.Controls.Add(this.valueChangeSigmaTextBox);
    147147      this.mutationGroupBox.Controls.Add(this.meanWeightChangeLabel);
    148       this.mutationGroupBox.Controls.Add(this.valueChangeNuTextBox);
     148      this.mutationGroupBox.Controls.Add(this.valueChangeMuTextBox);
    149149      this.mutationGroupBox.Location = new System.Drawing.Point(3, 158);
    150150      this.mutationGroupBox.Name = "mutationGroupBox";
     
    183183      this.meanWeightChangeLabel.Location = new System.Drawing.Point(6, 22);
    184184      this.meanWeightChangeLabel.Name = "meanWeightChangeLabel";
    185       this.meanWeightChangeLabel.Size = new System.Drawing.Size(97, 13);
     185      this.meanWeightChangeLabel.Size = new System.Drawing.Size(99, 13);
    186186      this.meanWeightChangeLabel.TabIndex = 6;
    187       this.meanWeightChangeLabel.Text = "Value change (nu):";
    188       this.toolTip.SetToolTip(this.meanWeightChangeLabel, "The nu (mean) parameter for the normal distribution to sample the value change.");
    189       //
    190       // valueChangeNuTextBox
    191       //
    192       this.valueChangeNuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    193                   | System.Windows.Forms.AnchorStyles.Right)));
    194       this.errorProvider.SetIconAlignment(this.valueChangeNuTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
    195       this.valueChangeNuTextBox.Location = new System.Drawing.Point(136, 19);
    196       this.valueChangeNuTextBox.Name = "valueChangeNuTextBox";
    197       this.valueChangeNuTextBox.Size = new System.Drawing.Size(178, 20);
    198       this.valueChangeNuTextBox.TabIndex = 7;
    199       this.toolTip.SetToolTip(this.valueChangeNuTextBox, "The nu (mean) parameter for the normal distribution to sample the value change.");
    200       this.valueChangeNuTextBox.TextChanged += new System.EventHandler(this.valueChangeNuTextBox_TextChanged);
     187      this.meanWeightChangeLabel.Text = "Value change (mu):";
     188      this.toolTip.SetToolTip(this.meanWeightChangeLabel, "The mu (mean) parameter for the normal distribution to sample the value change.");
     189      //
     190      // valueChangeMuTextBox
     191      //
     192      this.valueChangeMuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     193                  | System.Windows.Forms.AnchorStyles.Right)));
     194      this.errorProvider.SetIconAlignment(this.valueChangeMuTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
     195      this.valueChangeMuTextBox.Location = new System.Drawing.Point(136, 19);
     196      this.valueChangeMuTextBox.Name = "valueChangeMuTextBox";
     197      this.valueChangeMuTextBox.Size = new System.Drawing.Size(178, 20);
     198      this.valueChangeMuTextBox.TabIndex = 7;
     199      this.toolTip.SetToolTip(this.valueChangeMuTextBox, "The mu (mean) parameter for the normal distribution to sample the value change.");
     200      this.valueChangeMuTextBox.TextChanged += new System.EventHandler(this.valueChangeNuTextBox_TextChanged);
    201201      //
    202202      // ConstantView
     
    237237    private System.Windows.Forms.TextBox valueChangeSigmaTextBox;
    238238    private System.Windows.Forms.Label meanWeightChangeLabel;
    239     private System.Windows.Forms.TextBox valueChangeNuTextBox;
     239    private System.Windows.Forms.TextBox valueChangeMuTextBox;
    240240
    241241  }
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/ConstantView.cs

    r4435 r4989  
    6161      maxValueTextBox.Enabled = Content != null;
    6262      maxValueTextBox.ReadOnly = ReadOnly;
    63       valueChangeNuTextBox.Enabled = Content != null;
    64       valueChangeNuTextBox.ReadOnly = ReadOnly;
     63      valueChangeMuTextBox.Enabled = Content != null;
     64      valueChangeMuTextBox.ReadOnly = ReadOnly;
    6565      valueChangeSigmaTextBox.Enabled = Content != null;
    6666      valueChangeSigmaTextBox.ReadOnly = ReadOnly;
     
    9595    private void valueChangeNuTextBox_TextChanged(object sender, EventArgs e) {
    9696      double nu;
    97       if (double.TryParse(valueChangeNuTextBox.Text, out nu)) {
    98         Content.ManipulatorNu = nu;
    99         errorProvider.SetError(valueChangeNuTextBox, string.Empty);
     97      if (double.TryParse(valueChangeMuTextBox.Text, out nu)) {
     98        Content.ManipulatorMu = nu;
     99        errorProvider.SetError(valueChangeMuTextBox, string.Empty);
    100100      } else {
    101         errorProvider.SetError(valueChangeNuTextBox, "Invalid value");
     101        errorProvider.SetError(valueChangeMuTextBox, "Invalid value");
    102102      }
    103103    }
     
    124124        minValueTextBox.Text = Content.MinValue.ToString();
    125125        maxValueTextBox.Text = Content.MaxValue.ToString();
    126         valueChangeNuTextBox.Text = Content.ManipulatorNu.ToString();
     126        valueChangeMuTextBox.Text = Content.ManipulatorMu.ToString();
    127127        valueChangeSigmaTextBox.Text = Content.ManipulatorSigma.ToString();
    128128      }
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/VariableView.Designer.cs

    r3915 r4989  
    4545    /// </summary>
    4646    private void InitializeComponent() {
    47       this.weightNuLabel = new System.Windows.Forms.Label();
    48       this.weightNuTextBox = new System.Windows.Forms.TextBox();
     47      this.weightMuLabel = new System.Windows.Forms.Label();
     48      this.weightMuTextBox = new System.Windows.Forms.TextBox();
    4949      this.initializationGroupBox = new System.Windows.Forms.GroupBox();
    5050      this.weightSigmaLabel = new System.Windows.Forms.Label();
     
    5454      this.weightChangeSigmaTextBox = new System.Windows.Forms.TextBox();
    5555      this.meanWeightChangeLabel = new System.Windows.Forms.Label();
    56       this.weightChangeNuTextBox = new System.Windows.Forms.TextBox();
     56      this.weightChangeMuTextBox = new System.Windows.Forms.TextBox();
    5757      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    5858      this.initializationGroupBox.SuspendLayout();
     
    6666      // initialFrequencyTextBox
    6767      //
     68      this.errorProvider.SetIconAlignment(this.initialFrequencyTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
    6869      this.initialFrequencyTextBox.Size = new System.Drawing.Size(203, 20);
    6970      //
     
    7677      // descriptionTextBox
    7778      //
     79      this.errorProvider.SetIconAlignment(this.descriptionTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
    7880      this.descriptionTextBox.Size = new System.Drawing.Size(203, 20);
    7981      //
    80       // weightNuLabel
    81       //
    82       this.weightNuLabel.AutoSize = true;
    83       this.weightNuLabel.Location = new System.Drawing.Point(6, 22);
    84       this.weightNuLabel.Name = "weightNuLabel";
    85       this.weightNuLabel.Size = new System.Drawing.Size(65, 13);
    86       this.weightNuLabel.TabIndex = 6;
    87       this.weightNuLabel.Text = "Weight (nu):";
    88       this.toolTip.SetToolTip(this.weightNuLabel, "The nu (mean) parameter of the normal distribution to use for initial weights.");
    89       //
    90       // weightNuTextBox
    91       //
    92       this.weightNuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    93                   | System.Windows.Forms.AnchorStyles.Right)));
    94       this.weightNuTextBox.Location = new System.Drawing.Point(92, 19);
    95       this.weightNuTextBox.Name = "weightNuTextBox";
    96       this.weightNuTextBox.Size = new System.Drawing.Size(201, 20);
    97       this.weightNuTextBox.TabIndex = 7;
    98       this.toolTip.SetToolTip(this.weightNuTextBox, "The nu (mean) parameter of the normal distribution from which to sample the initi" +
     82      // weightMuLabel
     83      //
     84      this.weightMuLabel.AutoSize = true;
     85      this.weightMuLabel.Location = new System.Drawing.Point(6, 22);
     86      this.weightMuLabel.Name = "weightMuLabel";
     87      this.weightMuLabel.Size = new System.Drawing.Size(67, 13);
     88      this.weightMuLabel.TabIndex = 6;
     89      this.weightMuLabel.Text = "Weight (mu):";
     90      this.toolTip.SetToolTip(this.weightMuLabel, "The mu (mean) parameter of the normal distribution to use for initial weights.");
     91      //
     92      // weightMuTextBox
     93      //
     94      this.weightMuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     95                  | System.Windows.Forms.AnchorStyles.Right)));
     96      this.weightMuTextBox.Location = new System.Drawing.Point(92, 19);
     97      this.weightMuTextBox.Name = "weightMuTextBox";
     98      this.weightMuTextBox.Size = new System.Drawing.Size(201, 20);
     99      this.weightMuTextBox.TabIndex = 7;
     100      this.toolTip.SetToolTip(this.weightMuTextBox, "The mu (mean) parameter of the normal distribution from which to sample the initi" +
    99101              "al weights.");
    100       this.weightNuTextBox.TextChanged += new System.EventHandler(this.weightNuTextBox_TextChanged);
     102      this.weightMuTextBox.TextChanged += new System.EventHandler(this.weightNuTextBox_TextChanged);
    101103      //
    102104      // initializationGroupBox
     
    106108      this.initializationGroupBox.Controls.Add(this.weightSigmaLabel);
    107109      this.initializationGroupBox.Controls.Add(this.weightSigmaTextBox);
    108       this.initializationGroupBox.Controls.Add(this.weightNuLabel);
    109       this.initializationGroupBox.Controls.Add(this.weightNuTextBox);
     110      this.initializationGroupBox.Controls.Add(this.weightMuLabel);
     111      this.initializationGroupBox.Controls.Add(this.weightMuTextBox);
    110112      this.initializationGroupBox.Location = new System.Drawing.Point(3, 79);
    111113      this.initializationGroupBox.Name = "initializationGroupBox";
     
    144146      this.mutationGroupBox.Controls.Add(this.weightChangeSigmaTextBox);
    145147      this.mutationGroupBox.Controls.Add(this.meanWeightChangeLabel);
    146       this.mutationGroupBox.Controls.Add(this.weightChangeNuTextBox);
     148      this.mutationGroupBox.Controls.Add(this.weightChangeMuTextBox);
    147149      this.mutationGroupBox.Location = new System.Drawing.Point(3, 158);
    148150      this.mutationGroupBox.Name = "mutationGroupBox";
     
    180182      this.meanWeightChangeLabel.Location = new System.Drawing.Point(6, 22);
    181183      this.meanWeightChangeLabel.Name = "meanWeightChangeLabel";
    182       this.meanWeightChangeLabel.Size = new System.Drawing.Size(104, 13);
     184      this.meanWeightChangeLabel.Size = new System.Drawing.Size(106, 13);
    183185      this.meanWeightChangeLabel.TabIndex = 6;
    184       this.meanWeightChangeLabel.Text = "Weight change (nu):";
     186      this.meanWeightChangeLabel.Text = "Weight change (mu):";
    185187      this.toolTip.SetToolTip(this.meanWeightChangeLabel, "The nu (mean) parameter for the normal distribution to sample the change in weigh" +
    186188              "t.");
    187189      //
    188       // weightChangeNuTextBox
    189       //
    190       this.weightChangeNuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    191                   | System.Windows.Forms.AnchorStyles.Right)));
    192       this.weightChangeNuTextBox.Location = new System.Drawing.Point(131, 19);
    193       this.weightChangeNuTextBox.Name = "weightChangeNuTextBox";
    194       this.weightChangeNuTextBox.Size = new System.Drawing.Size(162, 20);
    195       this.weightChangeNuTextBox.TabIndex = 7;
    196       this.toolTip.SetToolTip(this.weightChangeNuTextBox, "The nu (mean) parameter for the normal distribution to sample the change in weigh" +
     190      // weightChangeMuTextBox
     191      //
     192      this.weightChangeMuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     193                  | System.Windows.Forms.AnchorStyles.Right)));
     194      this.weightChangeMuTextBox.Location = new System.Drawing.Point(131, 19);
     195      this.weightChangeMuTextBox.Name = "weightChangeMuTextBox";
     196      this.weightChangeMuTextBox.Size = new System.Drawing.Size(162, 20);
     197      this.weightChangeMuTextBox.TabIndex = 7;
     198      this.toolTip.SetToolTip(this.weightChangeMuTextBox, "The mu (mean) parameter for the normal distribution to sample the change in weigh" +
    197199              "t.");
    198       this.weightChangeNuTextBox.TextChanged += new System.EventHandler(this.weightChangeNuTextBox_TextChanged);
     200      this.weightChangeMuTextBox.TextChanged += new System.EventHandler(this.weightChangeNuTextBox_TextChanged);
    199201      //
    200202      // VariableView
     
    226228    #endregion
    227229
    228     private System.Windows.Forms.Label weightNuLabel;
    229     private System.Windows.Forms.TextBox weightNuTextBox;
     230    private System.Windows.Forms.Label weightMuLabel;
     231    private System.Windows.Forms.TextBox weightMuTextBox;
    230232    protected System.Windows.Forms.GroupBox initializationGroupBox;
    231233    private System.Windows.Forms.Label weightSigmaLabel;
     
    235237    private System.Windows.Forms.TextBox weightChangeSigmaTextBox;
    236238    private System.Windows.Forms.Label meanWeightChangeLabel;
    237     private System.Windows.Forms.TextBox weightChangeNuTextBox;
     239    private System.Windows.Forms.TextBox weightChangeMuTextBox;
    238240
    239241  }
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/VariableView.cs

    r4435 r4989  
    5757    protected override void SetEnabledStateOfControls() {
    5858      base.SetEnabledStateOfControls();
    59       weightNuTextBox.Enabled = Content != null;
    60       weightNuTextBox.ReadOnly = ReadOnly;
     59      weightMuTextBox.Enabled = Content != null;
     60      weightMuTextBox.ReadOnly = ReadOnly;
    6161      weightSigmaTextBox.Enabled = Content != null;
    6262      weightSigmaTextBox.ReadOnly = ReadOnly;
    63       weightChangeNuTextBox.Enabled = Content != null;
    64       weightChangeNuTextBox.ReadOnly = ReadOnly;
     63      weightChangeMuTextBox.Enabled = Content != null;
     64      weightChangeMuTextBox.ReadOnly = ReadOnly;
    6565      weightChangeSigmaTextBox.Enabled = Content != null;
    6666      weightChangeSigmaTextBox.ReadOnly = ReadOnly;
     
    7676    private void weightNuTextBox_TextChanged(object sender, EventArgs e) {
    7777      double nu;
    78       if (double.TryParse(weightNuTextBox.Text, out nu)) {
    79         Content.WeightNu = nu;
    80         errorProvider.SetError(weightNuTextBox, string.Empty);
     78      if (double.TryParse(weightMuTextBox.Text, out nu)) {
     79        Content.WeightMu = nu;
     80        errorProvider.SetError(weightMuTextBox, string.Empty);
    8181      } else {
    82         errorProvider.SetError(weightNuTextBox, "Invalid value");
     82        errorProvider.SetError(weightMuTextBox, "Invalid value");
    8383      }
    8484    }
     
    9595    private void weightChangeNuTextBox_TextChanged(object sender, EventArgs e) {
    9696      double nu;
    97       if (double.TryParse(weightChangeNuTextBox.Text, out nu)) {
    98         Content.WeightManipulatorNu = nu;
    99         errorProvider.SetError(weightChangeNuTextBox, string.Empty);
     97      if (double.TryParse(weightChangeMuTextBox.Text, out nu)) {
     98        Content.WeightManipulatorMu = nu;
     99        errorProvider.SetError(weightChangeMuTextBox, string.Empty);
    100100      } else {
    101         errorProvider.SetError(weightChangeNuTextBox, "Invalid value");
     101        errorProvider.SetError(weightChangeMuTextBox, "Invalid value");
    102102      }
    103103    }
     
    117117    private void UpdateControl() {
    118118      if (Content == null) {
    119         weightNuTextBox.Text = string.Empty;
     119        weightMuTextBox.Text = string.Empty;
    120120        weightSigmaTextBox.Text = string.Empty;
    121         weightNuTextBox.Text = string.Empty;
     121        weightMuTextBox.Text = string.Empty;
    122122        weightChangeSigmaTextBox.Text = string.Empty;
    123123      } else {
    124         weightNuTextBox.Text = Content.WeightNu.ToString();
     124        weightMuTextBox.Text = Content.WeightMu.ToString();
    125125        weightSigmaTextBox.Text = Content.WeightSigma.ToString();
    126         weightChangeNuTextBox.Text = Content.WeightManipulatorNu.ToString();
     126        weightChangeMuTextBox.Text = Content.WeightManipulatorMu.ToString();
    127127        weightChangeSigmaTextBox.Text = Content.WeightManipulatorSigma.ToString();
    128128      }
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/Constant.cs

    r4722 r4989  
    5454    }
    5555    [Storable]
    56     private double manipulatorNu;
    57     public double ManipulatorNu {
    58       get { return manipulatorNu; }
     56    private double manipulatorMu;
     57    public double ManipulatorMu {
     58      get { return manipulatorMu; }
    5959      set {
    60         if (value != manipulatorNu) {
    61           manipulatorNu = value;
     60        if (value != manipulatorMu) {
     61          manipulatorMu = value;
    6262          OnChanged(EventArgs.Empty);
    6363        }
     
    8383      minValue = original.minValue;
    8484      maxValue = original.maxValue;
    85       manipulatorNu = original.manipulatorNu;
     85      manipulatorMu = original.manipulatorMu;
    8686      manipulatorSigma = original.manipulatorSigma;
    8787    }
    8888    public Constant()
    8989      : base("Constant", "Represents a constant value.") {
    90       manipulatorNu = 0.0;
     90      manipulatorMu = 0.0;
    9191      manipulatorSigma = 1.0;
    9292      minValue = -20.0;
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/ConstantTreeNode.cs

    r4722 r4989  
    6363    public override void ShakeLocalParameters(IRandom random, double shakingFactor) {
    6464      base.ShakeLocalParameters(random, shakingFactor);
    65       double x = NormalDistributedRandom.NextDouble(random, Symbol.ManipulatorNu, Symbol.ManipulatorSigma);
     65      double x = NormalDistributedRandom.NextDouble(random, Symbol.ManipulatorMu, Symbol.ManipulatorSigma);
    6666      Value = Value + x * shakingFactor;
    6767    }
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/Variable.cs

    r4722 r4989  
    3333    #region Properties
    3434    [Storable]
    35     private double weightNu;
    36     public double WeightNu {
    37       get { return weightNu; }
     35    private double weightMu;
     36    public double WeightMu {
     37      get { return weightMu; }
    3838      set {
    39         if (value != weightNu) {
    40           weightNu = value;
     39        if (value != weightMu) {
     40          weightMu = value;
    4141          OnChanged(EventArgs.Empty);
    4242        }
     
    5656    }
    5757    [Storable]
    58     private double weightManipulatorNu;
    59     public double WeightManipulatorNu {
    60       get { return weightManipulatorNu; }
     58    private double weightManipulatorMu;
     59    public double WeightManipulatorMu {
     60      get { return weightManipulatorMu; }
    6161      set {
    62         if (value != weightManipulatorNu) {
    63           weightManipulatorNu = value;
     62        if (value != weightManipulatorMu) {
     63          weightManipulatorMu = value;
    6464          OnChanged(EventArgs.Empty);
    6565        }
     
    9696    protected Variable(Variable original, Cloner cloner)
    9797      : base(original, cloner) {
    98       weightNu = original.weightNu;
     98      weightMu = original.weightMu;
    9999      weightSigma = original.weightSigma;
    100100      variableNames = new List<string>(original.variableNames);
    101       weightManipulatorNu = original.weightManipulatorNu;
     101      weightManipulatorMu = original.weightManipulatorMu;
    102102      weightManipulatorSigma = original.weightManipulatorSigma;
    103103    }
     
    105105    public Variable(string name, string description)
    106106      : base(name, description) {
    107       weightNu = 1.0;
     107      weightMu = 1.0;
    108108      weightSigma = 1.0;
    109       weightManipulatorNu = 0.0;
     109      weightManipulatorMu = 0.0;
    110110      weightManipulatorSigma = 1.0;
    111111      variableNames = new List<string>();
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/VariableTreeNode.cs

    r4722 r4989  
    6262    public override void ResetLocalParameters(IRandom random) {
    6363      base.ResetLocalParameters(random);
    64       weight = NormalDistributedRandom.NextDouble(random, Symbol.WeightNu, Symbol.WeightSigma);
     64      weight = NormalDistributedRandom.NextDouble(random, Symbol.WeightMu, Symbol.WeightSigma);
    6565      variableName = Symbol.VariableNames.SelectRandom(random);
    6666    }
     
    6868    public override void ShakeLocalParameters(IRandom random, double shakingFactor) {
    6969      base.ShakeLocalParameters(random, shakingFactor);
    70       double x = NormalDistributedRandom.NextDouble(random, Symbol.WeightManipulatorNu, Symbol.WeightManipulatorSigma);
     70      double x = NormalDistributedRandom.NextDouble(random, Symbol.WeightManipulatorMu, Symbol.WeightManipulatorSigma);
    7171      weight = weight + x * shakingFactor;
    7272      variableName = Symbol.VariableNames.SelectRandom(random);
Note: See TracChangeset for help on using the changeset viewer.