Exemplo n.º 1
0
        private void Client_Load(object sender, EventArgs e)
        {
            InitializeAnalysisMetricsGroupBox();
            AnalysisIntervalSizeTextBox.Text = InterarrivalInterval.GetIntervalMilliSeconds().ToString();
            HistogramBinSizeTextBox.Text = "5";
            TrimIntervalsCheckBox.Checked = true;
            TrimSmallestBinsToolTip.SetToolTip(TrimIntervalsCheckBox, "Trim any intervals with a packet count less than or equal to the histogram bin size");
            //KsTestStepRadioButton.Checked = true;
            KsTestLinearRadioButton.Checked = true;
            AnalysisConfiguration.Alpha = 0.05;      // Hypothesis test significance level
            AnalysisConfiguration.Zvalue = 1.65M;    // Z value for (1-_alpha), from standard normal distribution table
            // (note: one-tailed test because we are looking at the distribution
            // for the difference of the means)

            ProcessCapturePackets pcp = new ProcessCapturePackets();
            _MarkedFileCount = pcp.GetRawFileCountMarked();
            _UnmarkedFileCount = pcp.GetRawFileCountUnmarked();
            DisplayCapturedFileCount();

            // Start the background worker thread for the new file notifier
            bgWorker.RunWorkerAsync();
        }