Beispiel #1
0
 /// <summary>
 /// Resets the instance.
 /// </summary>
 public void Reset()
 {
     NumOf.Populate(0);
     Count = 0;
     Ratio.Populate(0);
     return;
 }
Beispiel #2
0
 /// <summary>
 /// Resets the instance to the initial state
 /// </summary>
 public void Reset()
 {
     NumOf.Populate(0);
     Count = 0;
     BinRate.Populate(0);
     return;
 }
Beispiel #3
0
        /// <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);
        }
Beispiel #4
0
        /// <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);
        }