Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/22/21 14:59:58 (4 years ago)
Author:
gkronber
Message:

#3073: refactoring ShapeConstrainedRegressionProblem as discussed with MKo and CHa

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/LinearScalingGrammar.cs

    r17945 r17958  
    3030namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
    3131  [StorableType("5A2300A0-D0FC-4F2D-B910-F86384FE9052")]
    32   [Item("IntervalArithmeticGrammar", "Represents a grammar for interval arithmetic which includes linear scaling parts implicitly.")]
    33   public class IntervalArithmeticGrammar : DataAnalysisGrammar, ISymbolicDataAnalysisGrammar {
    34     public IntervalArithmeticGrammar() : base(ItemAttribute.GetName(typeof(IntervalArithmeticGrammar)),
    35       ItemAttribute.GetDescription(typeof(IntervalArithmeticGrammar))) {
     32  [Item("LinearScalingGrammar", "Represents a grammar which includes linear scaling parts implicitly.")]
     33  public class LinearScalingGrammar : DataAnalysisGrammar, ISymbolicDataAnalysisGrammar {
     34    public LinearScalingGrammar() : base(ItemAttribute.GetName(typeof(LinearScalingGrammar)),
     35      ItemAttribute.GetDescription(typeof(LinearScalingGrammar))) {
    3636      Initialize();
    3737    }
    3838
    3939    [StorableConstructor]
    40     public IntervalArithmeticGrammar(StorableConstructorFlag _) : base(_) { }
     40    public LinearScalingGrammar(StorableConstructorFlag _) : base(_) { }
    4141
    42     protected IntervalArithmeticGrammar(IntervalArithmeticGrammar original, Cloner cloner) : base(original, cloner) { }
    43     public IntervalArithmeticGrammar(string name, string description) : base(name, description) { }
     42    protected LinearScalingGrammar(LinearScalingGrammar original, Cloner cloner) : base(original, cloner) { }
     43    public LinearScalingGrammar(string name, string description) : base(name, description) { }
    4444
    4545    public override IDeepCloneable Clone(Cloner cloner) {
    46       return new IntervalArithmeticGrammar(this, cloner);
     46      return new LinearScalingGrammar(this, cloner);
    4747    }
    4848
Note: See TracChangeset for help on using the changeset viewer.