コード例 #1
0
        //****************************************************************************************

        public static List <string> calEntropy_MotionData(String path_loadFrom, List <int[]> keyPostureRange
                                                          , int degit, int col_combine_range)
        {
            List <string> final_output = new List <string>();//Data

            try
            {
                DataTable dt = CSVReader.ReadCSVFile(path_loadFrom, true); //prepare Data
                dt = TheTool.dataTable_cropCol(dt, 2, 0);                  //del first 2 Col
                TheTool.dataTable_roundValue(dt, degit);                   // eliminate decimal
                int start = -1; int end = 0;
                foreach (int[] keyPose in keyPostureRange)
                {
                    DataTable dt_sub = TheTool.dataTable_selectRow_byIndex(dt, start, end);
                    final_output.Add(start + " to " + end + "," + calEntrophy_1Action(dt_sub, col_combine_range));
                }
            }
            catch (Exception ex) { TheSys.showError(ex); }
            return(final_output);
        }