- Timestamp:
- 09/03/13 15:46:01 (11 years ago)
- Location:
- stable
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 9587,9590,9600,9607,9626,9658-9659,9699,9906
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression (added) merged: 9587
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/Interfaces/ISymbolicRegressionModel.cs
r9456 r9931 22 22 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression { 23 23 public interface ISymbolicRegressionModel : IRegressionModel, ISymbolicDataAnalysisModel { 24 double LowerEstimationLimit { get; }25 double UpperEstimationLimit { get; }26 27 24 void Scale(IRegressionProblemData problemData); 28 25 } -
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionModel.cs
r9456 r9931 33 33 [Item(Name = "Symbolic Regression Model", Description = "Represents a symbolic regression model.")] 34 34 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 41 36 42 37 [StorableConstructor] 43 38 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 49 41 public SymbolicRegressionModel(ISymbolicExpressionTree tree, ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, 50 42 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) { } 55 44 56 45 public override IDeepCloneable Clone(Cloner cloner) { … … 60 49 public IEnumerable<double> GetEstimatedValues(Dataset dataset, IEnumerable<int> rows) { 61 50 return Interpreter.GetSymbolicExpressionTreeValues(SymbolicExpressionTree, dataset, rows) 62 .LimitToRange( lowerEstimationLimit, upperEstimationLimit);51 .LimitToRange(LowerEstimationLimit, UpperEstimationLimit); 63 52 } 64 53
Note: See TracChangeset
for help on using the changeset viewer.