Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/08/16 13:00:06 (8 years ago)
Author:
gkronber
Message:

#2650: renamed FactorVariable -> BinaryFactorVariable

File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/BinaryFactorVariable.cs

    r14242 r14243  
    2929namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
    3030  [StorableClass]
    31   [Item("FactorVariable", "Represents a categorical variable (comparable to factors as in R).")]
    32   public class FactorVariable : VariableBase {
     31  [Item("BinaryFactorVariable", "Represents a categorical variable (comparable to factors as in R) and it's value.")]
     32  public class BinaryFactorVariable : VariableBase {
    3333
    3434    private Dictionary<string, List<string>> variableValues;
     
    4747
    4848    [StorableConstructor]
    49     protected FactorVariable(bool deserializing)
     49    protected BinaryFactorVariable(bool deserializing)
    5050      : base(deserializing) {
    5151      variableValues = new Dictionary<string, List<string>>();
    5252    }
    53     protected FactorVariable(FactorVariable original, Cloner cloner)
     53    protected BinaryFactorVariable(BinaryFactorVariable original, Cloner cloner)
    5454      : base(original, cloner) {
    5555      variableValues =
    5656        original.variableValues.ToDictionary(kvp => kvp.Key, kvp => new List<string>(kvp.Value));
    5757    }
    58     public FactorVariable() : this("FactorVariable", "Represents a categorical variable (comparable to factors as in R).") { }
    59     public FactorVariable(string name, string description)
     58    public BinaryFactorVariable() : this("BinaryFactorVariable", "Represents a categorical variable (comparable to factors as in R) and it's value.") { }
     59    public BinaryFactorVariable(string name, string description)
    6060      : base(name, description) {
    6161      variableValues = new Dictionary<string, List<string>>();
     
    6767
    6868    public override IDeepCloneable Clone(Cloner cloner) {
    69       return new FactorVariable(this, cloner);
     69      return new BinaryFactorVariable(this, cloner);
    7070    }
    7171
Note: See TracChangeset for help on using the changeset viewer.