Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/03/13 15:46:01 (11 years ago)
Author:
ascheibe
Message:

#1730 merged r9587,r9590, r9600, r9607, r9626, r9658, r9659, r9699, r9906 into stable

Location:
stable
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression

  • stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/Interfaces/ISymbolicRegressionModel.cs

    r9456 r9931  
    2222namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression {
    2323  public interface ISymbolicRegressionModel : IRegressionModel, ISymbolicDataAnalysisModel {
    24     double LowerEstimationLimit { get; }
    25     double UpperEstimationLimit { get; }
    26 
    2724    void Scale(IRegressionProblemData problemData);
    2825  }
  • stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionModel.cs

    r9456 r9931  
    3333  [Item(Name = "Symbolic Regression Model", Description = "Represents a symbolic regression model.")]
    3434  public class SymbolicRegressionModel : SymbolicDataAnalysisModel, ISymbolicRegressionModel {
    35     [Storable]
    36     private double lowerEstimationLimit;
    37     public double LowerEstimationLimit { get { return lowerEstimationLimit; } }
    38     [Storable]
    39     private double upperEstimationLimit;
    40     public double UpperEstimationLimit { get { return upperEstimationLimit; } }
     35
    4136
    4237    [StorableConstructor]
    4338    protected SymbolicRegressionModel(bool deserializing) : base(deserializing) { }
    44     protected SymbolicRegressionModel(SymbolicRegressionModel original, Cloner cloner)
    45       : base(original, cloner) {
    46       this.lowerEstimationLimit = original.lowerEstimationLimit;
    47       this.upperEstimationLimit = original.upperEstimationLimit;
    48     }
     39    protected SymbolicRegressionModel(SymbolicRegressionModel original, Cloner cloner) : base(original, cloner) { }
     40
    4941    public SymbolicRegressionModel(ISymbolicExpressionTree tree, ISymbolicDataAnalysisExpressionTreeInterpreter interpreter,
    5042      double lowerEstimationLimit = double.MinValue, double upperEstimationLimit = double.MaxValue)
    51       : base(tree, interpreter) {
    52       this.lowerEstimationLimit = lowerEstimationLimit;
    53       this.upperEstimationLimit = upperEstimationLimit;
    54     }
     43      : base(tree, interpreter, lowerEstimationLimit, upperEstimationLimit) { }
    5544
    5645    public override IDeepCloneable Clone(Cloner cloner) {
     
    6049    public IEnumerable<double> GetEstimatedValues(Dataset dataset, IEnumerable<int> rows) {
    6150      return Interpreter.GetSymbolicExpressionTreeValues(SymbolicExpressionTree, dataset, rows)
    62         .LimitToRange(lowerEstimationLimit, upperEstimationLimit);
     51        .LimitToRange(LowerEstimationLimit, UpperEstimationLimit);
    6352    }
    6453
Note: See TracChangeset for help on using the changeset viewer.