Ejemplo n.º 1
0
 private void button8_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         //P-Analysis ---------------------------------
         checkSaveSub.IsChecked = true;
         checkSample.IsChecked  = false;
         doTransform(0);
         sub.Close();
         //Concat Sub files & export ---------------------------------
         List <string> concat_txt      = TheTool.concatFile_OWS(sub_t.list_fileSave, true, 2);
         string        path_saveFolder = TheURL.totalView_path_saveRoot + @"[NEu]\" + sub_t.getSubSubFolder();
         TheTool.Folder_CreateIfMissing(path_saveFolder);
         string path_concatFile = path_saveFolder + @"\concat.csv";
         TheTool.exportFile(concat_txt, path_concatFile, false);
         //Learn MinMax & export ---------------------------------
         TheMinMaxNormaliz.getDataTable(path_concatFile);
         TheMinMaxNormaliz.buildMinMax_Euclidian_Table();
         TheTool.export_dataTable_to_CSV(path_saveFolder + @"\minmax.csv", TheMinMaxNormaliz.dt_MinMax_Euclidian);
         //--------------------
         doTransform(1);
         sub.confirmOnClose = true;
     }
     catch { }
 }
Ejemplo n.º 2
0
        //***************************************************************
        //*********************** Super Normalize****************************


        //Learn where is Min - Max
        private void butLearn_Click(object sender, RoutedEventArgs e)
        {
            Nullable <bool> openDialog = TheTool.openFileDialog_01(false, ".csv", "");

            // Get the selected file name and display in a TextBox
            if (openDialog == true)
            {
                TheMinMaxNormaliz.getDataTable(TheTool.dialog.FileName);
                if (TheMinMaxNormaliz.minmax_Euclidian_ready)
                {
                    TheMinMaxNormaliz.showMinMax_Euclidian_Table();
                    butA2.IsEnabled = true;
                }
                ;
            }
        }