Changeset 14376 for trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/OnlineMeanAbsoluteErrorCalculator.cs
- Timestamp:
- 11/07/16 14:06:02 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/OnlineMeanAbsoluteErrorCalculator.cs
r14294 r14376 25 25 26 26 namespace HeuristicLab.Problems.DataAnalysis { 27 public class OnlineMeanAbsoluteErrorCalculator : IOnlineCalculator, IDeepCloneable{27 public class OnlineMeanAbsoluteErrorCalculator : DeepCloneable, IOnlineCalculator { 28 28 29 29 private double sae; … … 95 95 } 96 96 97 // IDeepCloneable interface members 98 public object Clone() { 99 return new OnlineMeanAbsoluteErrorCalculator(this); 100 } 101 102 public IDeepCloneable Clone(Cloner cloner) { 103 var clone = cloner.GetClone(this); 104 if (clone == null) { 105 clone = new OnlineMeanAbsoluteErrorCalculator(this); 106 cloner.RegisterClonedObject(this, clone); 107 } 108 return clone; 97 public override IDeepCloneable Clone(Cloner cloner) { 98 return new OnlineMeanAbsoluteErrorCalculator(this, cloner); 109 99 } 110 100 }
Note: See TracChangeset
for help on using the changeset viewer.