示例#1
0
        /// <summary>
        /// Reads the data. (allows faster custom serialization for better performance in TraceLab)
        /// </summary>
        /// <param name="reader">The reader.</param>
        public override void ReadData(System.IO.BinaryReader reader)
        {
            this.MetricName  = reader.ReadString();
            this.Description = reader.ReadString();

            int listCount = reader.ReadInt32();

            this.m_points = new List <BoxPlotPoint>(listCount);

            for (int i = 0; i < listCount; i++)
            {
                BoxPlotPoint p = new BoxPlotPoint();
                p.ReadData(reader);
                this.m_points.Add(p);
            }
        }
示例#2
0
        /// <summary>
        /// Determines whether the specified <see cref="System.Object"/> is equal to this instance.
        /// </summary>
        /// <param name="obj">The <see cref="System.Object"/> to compare with this instance.</param>
        /// <returns>
        ///   <c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>.
        /// </returns>
        /// <exception cref="T:System.NullReferenceException">
        /// The <paramref name="obj"/> parameter is null.
        ///   </exception>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            BoxPlotPoint p = obj as BoxPlotPoint;

            if ((System.Object)p == null)
            {
                return(false);
            }

            return(Min == p.Min && Q1 == p.Q1 && Median == p.Median && Mean == p.Mean && Q3 == p.Q3 && Max == p.Max && StdDev == p.StdDev && N == p.N);
        }
示例#3
0
 /// <summary>
 /// Adds a point.
 /// </summary>
 /// <param name="point">The point.</param>
 public void AddPoint(BoxPlotPoint point)
 {
     m_points.Add(point);
 }
 /// <summary>
 /// Adds a point.
 /// </summary>
 /// <param name="point">The point.</param>
 public void AddPoint(BoxPlotPoint point)
 {
     m_points.Add(point);
 }
        /// <summary>
        /// Reads the data. (allows faster custom serialization for better performance in TraceLab)
        /// </summary>
        /// <param name="reader">The reader.</param>
        public override void ReadData(System.IO.BinaryReader reader)
        {
            this.MetricName = reader.ReadString();
            this.Description = reader.ReadString();

            int listCount = reader.ReadInt32();
            this.m_points = new List<BoxPlotPoint>(listCount);

            for (int i = 0; i < listCount; i++)
            {
                BoxPlotPoint p = new BoxPlotPoint();
                p.ReadData(reader);
                this.m_points.Add(p);
            }
        }