////////////////////////////////////////////////////////////////////////////////
        /// <summary> </summary>
        private void PerformStats()
        {
            Range trials  = new Range();
            Range sensors = new Range();
            Range angle   = new Range();
            Range range   = new Range();

            if (trials.Parse (uiTextBoxStatsTrials.Text) && sensors.Parse (uiTextBoxStatsSensors.Text) &&
                angle.Parse  (uiTextBoxStatsAngle.Text ) && range.Parse   (uiTextBoxStatsRange.Text))
            {
                Statistics statistics = new Statistics (trials, sensors,
                    angle, range, (int) ActualWidth, (int) ActualHeight);

                if (statistics.PerformTests())
                {
                    uiLineGraphStats.Update (statistics);

                    if (!DisplayLineGraph)
                        DisplayLineGraph = true;
                }
            }
        }
        //----------------------------------------------------------------------------//
        // Methods                                                                    //
        //----------------------------------------------------------------------------//
        ////////////////////////////////////////////////////////////////////////////////
        /// <summary> </summary>
        public void Update(Statistics statistics)
        {
            for (int i = 0; i < mDataPoints.Length; ++i)
                mDataPoints[i] = statistics.GetDataPoint(i);

            UpdateGraph();
        }