示例#1
0
        //get max value, feature must be in F list
        string DCFS_listDelta_getMaxValue()
        {
            FeatureDelta f = new FeatureDelta();

            foreach (FeatureDelta f0 in DCFS_listDeltaCorrelation)
            {
                if (f.name == "" || f0.delta > f.delta)
                {
                    f = f0;
                }
            }
            if (f.name == "")
            {
                TheSys.showError("DCFS_listDelta_getMaxValue() : " + DCFS_listDeltaCorrelation.Count + " >> " + f.name);
            }
            return(f.name);
        }
示例#2
0
        List <FeatureDelta> getListDelta()
        {
            List <FeatureDelta> output = new List <FeatureDelta>();

            foreach (DataColumn dc in dt_threshold_pose1.Columns)
            {
                string c = dc.ColumnName;
                if (list_exclude.Contains(c) == false)
                {
                    FeatureDelta f = new FeatureDelta();
                    f.name = c;
                    double start = TheTool.dataTable_getAverage(dt_threshold_pose1, c);
                    double end   = TheTool.dataTable_getAverage(dt_threshold_pose2, c);
                    f.delta = Math.Abs(end - start);
                    output.Add(f);
                }
            }
            return(output);
        }