Free cookie consent management tool by TermsFeed Policy Generator

source: branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/ConstantRegressionSolution.cs @ 7461

Last change on this file since 7461 was 7085, checked in by sforsten, 13 years ago

#1669: branch has been merged with the trunk in revision 7081 and methods in RegressionBenchmark have been renamed.

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.