Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/07/16 14:06:02 (8 years ago)
Author:
bburlacu
Message:

#2672: Updated cloning mechanism to conform to the HL standard.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/OnlineMeanAbsoluteErrorCalculator.cs

    r14294 r14376  
    2525
    2626namespace HeuristicLab.Problems.DataAnalysis {
    27   public class OnlineMeanAbsoluteErrorCalculator : IOnlineCalculator, IDeepCloneable {
     27  public class OnlineMeanAbsoluteErrorCalculator : DeepCloneable, IOnlineCalculator {
    2828
    2929    private double sae;
     
    9595    }
    9696
    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);
    10999    }
    110100  }
Note: See TracChangeset for help on using the changeset viewer.