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
|
Rev | Line | |
---|
[7043] | 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]
|
---|
[7049] | 15 | protected ConstantRegressionSolution(bool deserializing) : base(deserializing) { }
|
---|
| 16 | protected ConstantRegressionSolution(ConstantRegressionSolution original, Cloner cloner) : base(original, cloner) { }
|
---|
[7043] | 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.