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