Ejemplo n.º 1
0
        /// <summary>
        ///   Displays a histogram with the specified data.
        /// </summary>
        ///
        /// <param name="title">The title for the histogram window.</param>
        /// <param name="values">The histogram values.</param>
        ///
        public static HistogramBox Show(string title, double[] values)
        {
            Histogram histogram = new Histogram(title);

            histogram.Compute(values);
            return(show(histogram));
        }
Ejemplo n.º 2
0
        //---------------------------------------------

        #region Event Handling
        private void trackBar_ValueChanged(object sender, EventArgs e)
        {
            m_histogram.Compute(m_samples, (int)trackBar1.Value);

            /* m_histogram.Compute(m_samples, RangeConversion.Convert(
             *                          trackBar1.Value,
             *                          new DoubleRange(0, 100),
             *                          new DoubleRange(0, m_histogram.Range.Length)
             *                     ));
             */
            this.UpdateGraph();
        }
Ejemplo n.º 3
0
        private void trackBar_ValueChanged(object sender, EventArgs e)
        {
            if (histogram == null)
            {
                return;
            }

            if (samples == null)
            {
                return;
            }

            histogram.Compute(samples, (int)trackBar.Value);

            this.UpdateGraph();
        }
Ejemplo n.º 4
0
        //---------------------------------------------

        #region Event Handling
        private void trackBar_ValueChanged(object sender, EventArgs e)
        {
            histogram.Compute(samples, (int)trackBar.Value);

            this.UpdateGraph();
        }