Esempio n. 1
0
        private void BtnOpenFile_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog FileOT = new OpenFileDialog();

            FileOT.Filter = "All files (*.*)|*.*|TXT text (*.txt)|*.txt";
            if (FileOT.ShowDialog() == true)
            {
                Stream ms = new FileStream(FileOT.FileName, FileMode.Open);
                lblNameFile.Content = FileOT.FileName;
                byte[] array = new byte[ms.Length];
                ms.Read(array, 0, array.Length);
                string buf = Encoding.Default.GetString(array);
                s = buf.ToLower();
            }
            sampleSource            = DiscriptiveStatistics.GetSample(s);
            tbDiscrStat_source.Text = DiscriptiveStatistics.Output_descriptive_statistics(sampleSource);
            tblSourceSample.Text    = DiscriptiveStatistics.Output(sampleSource);
        }
Esempio n. 2
0
 private void BtnRationing_Click(object sender, RoutedEventArgs e)
 {
     sampleRationing         = DiscriptiveStatistics.Rationing_MaxMin(sampleSource);
     tblRationning.Text      = DiscriptiveStatistics.Output(sampleRationing);
     tbDiscrStat_Ration.Text = DiscriptiveStatistics.Output_descriptive_statistics(sampleRationing);
 }