Ejemplo n.º 1
0
        public static void UKI_CalEntropy_Eu(String path_saveTo, String path_loadFrom, List <int[]> keyPostureRange)
        {
            List <string> final_output = new List <string>();              //Data

            final_output.Add("id," + TheUKI.getHeader_20Joint("_dist_H")); //Header
            final_output.AddRange(TheEntropy.calEntropy_MotionData(path_loadFrom, keyPostureRange, 2, 3));
            TheTool.exportCSV_orTXT(path_saveTo, final_output, false);
        }
Ejemplo n.º 2
0
        //============================================================

        public static void UKI_CalEntropy_1By1(String path_saveTo, String path_loadFrom, List <int[]> keyPosture_Range)
        {
            try{
                List <string> final_output = new List <string>();//Data
                //Header
                string   origin_header = TheTool.read_File_getFirstLine(path_loadFrom);
                string   new_header    = "id";
                string[] h             = TheTool.splitText(origin_header, ",");
                for (int i = 2; i < h.Count(); i++)
                {
                    new_header += "," + h[i] + "_H";
                }
                final_output.Add(new_header);
                //
                final_output.AddRange(TheEntropy.calEntropy_MotionData(path_loadFrom, keyPosture_Range, 2, 1));
                TheTool.exportCSV_orTXT(path_saveTo, final_output, false);
            }catch (Exception ex) { TheSys.showError(ex); }
        }