예제 #1
0
        internal static DF AddRow(DF df1, List <double> row)
        {
            DF dfRes = df1.Clone();

            dfRes.AddRow(row);
            return(dfRes);
        }
예제 #2
0
        internal DF SubDfRows(int[] sel)
        {
            DF dfRes = new DF(this.NCol);

            for (int i = 0; i < sel.Length; i++)
            {
                dfRes.AddRow(this.GetRow(sel[i]));
            }
            return(dfRes);
        }
예제 #3
0
        internal DF SubDfRows(int ini, int end)
        {
            DF dfRes = new DF(this.NCol);

            for (int i = ini; i <= end; i++)
            {
                dfRes.AddRow(this.GetRow(i));
            }
            return(dfRes);
        }
예제 #4
0
        internal static DF RBind(DF df1, DF df2)
        {
            DF dfBind = df1.Clone();

            for (int i = 1; i <= df2.NRow; i++)
            {
                List <double> row = df2.GetRow(i);
                dfBind.AddRow(row);
            }
            return(dfBind);
        }