/// <summary> /// Resets the instance. /// </summary> public void Reset() { NumOf.Populate(0); Count = 0; Ratio.Populate(0); return; }
/// <summary> /// Resets the instance to the initial state /// </summary> public void Reset() { NumOf.Populate(0); Count = 0; BinRate.Populate(0); return; }
/// <summary> /// Creates a deep copy clone /// </summary> public BinDistribution DeepClone() { BinDistribution clone = new BinDistribution(this.BinBorder); clone.Count = Count; clone.NumOf = (int[])NumOf.Clone(); clone.BinRate = (double[])BinRate.Clone(); return(clone); }
/// <summary> /// Creates the deep clone. /// </summary> public BinDistribution DeepClone() { BinDistribution clone = new BinDistribution(this.BinBorder) { Count = Count, NumOf = (int[])NumOf.Clone(), Ratio = (double[])Ratio.Clone() }; return(clone); }