Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/20/16 17:14:41 (8 years ago)
Author:
bburlacu
Message:

#2672: Add cloning constructors.

File:
1 edited

Legend:

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

    r14293 r14294  
    6767    }
    6868
    69     private OnlineMeanAndVarianceCalculator(OnlineMeanAndVarianceCalculator other) : this() {
     69    protected OnlineMeanAndVarianceCalculator(OnlineMeanAndVarianceCalculator other, Cloner cloner = null) {
    7070      m_oldS = other.m_oldS;
    7171      m_oldM = other.m_oldM;
     
    126126      var clone = cloner.GetClone(this);
    127127      if (clone == null) {
    128         clone = (IDeepCloneable)this.Clone();
     128        clone = new OnlineMeanAndVarianceCalculator(this);
    129129        cloner.RegisterClonedObject(this, clone);
    130130      }
Note: See TracChangeset for help on using the changeset viewer.