Last change
on this file since 7456 was
7049,
checked in by mkommend, 13 years ago
|
#1612: Corrected ctor access modifier for ConstantRegressionSolution.
|
File size:
1.1 KB
|
Line | |
---|
1 | using HeuristicLab.Common;
|
---|
2 | using HeuristicLab.Core;
|
---|
3 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
4 |
|
---|
5 | namespace 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.