Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Hive.Azure/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/ConstantRegressionSolution.cs @ 7215

Last change on this file since 7215 was 7215, checked in by spimming, 12 years ago

#1680:

  • merged changes from trunk into branch

' removed pre-build event for multiple app.configs

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.