Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HiveHiveEngine/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/ConstantRegressionSolution.cs @ 7317

Last change on this file since 7317 was 7049, checked in by mkommend, 13 years ago

#1612: Corrected ctor access modifier for ConstantRegressionSolution.

File size: 1.1 KB
Line 
1using HeuristicLab.Common;
2using HeuristicLab.Core;
3using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
4
5namespace HeuristicLab.Problems.DataAnalysis {
6  [StorableClass]
7  [Item(Name = "Constant Regression Solution", Description = "Represents a constant regression solution (model + data).")]
8  public class ConstantRegressionSolution : RegressionSolution {
9    public new ConstantRegressionModel Model {
10      get { return (ConstantRegressionModel)base.Model; }
11      set { base.Model = value; }
12    }
13
14    [StorableConstructor]
15    protected ConstantRegressionSolution(bool deserializing) : base(deserializing) { }
16    protected ConstantRegressionSolution(ConstantRegressionSolution original, Cloner cloner) : base(original, cloner) { }
17    public ConstantRegressionSolution(ConstantRegressionModel model, IRegressionProblemData problemData)
18      : base(model, problemData) {
19      RecalculateResults();
20    }
21
22    public override IDeepCloneable Clone(Cloner cloner) {
23      return new ConstantRegressionSolution(this, cloner);
24    }
25  }
26}
Note: See TracBrowser for help on using the repository browser.