Пример #1
0
        internal static DF AddColumn(DF df, List <double> col)
        {
            DF dfRes = df.Clone();

            dfRes.AddColumn(col);
            return(dfRes);
        }
Пример #2
0
        internal static DF AddColumn(DF df, AR ts)
        {
            List <double> col   = ts.ToList();
            DF            dfRes = df.Clone();

            dfRes.AddColumn(col);
            return(dfRes);
        }
Пример #3
0
        internal DF SubDfCols(int[] sel)
        {
            DF dfRes = new DF();

            for (int i = 0; i < sel.Length; i++)
            {
                dfRes.AddColumn(this.GetColumn(sel[i]));
            }
            return(dfRes);
        }
Пример #4
0
        internal DF SubDfCols(int ini, int end)
        {
            DF dfRes = new DF();

            for (int i = ini; i <= end; i++)
            {
                dfRes.AddColumn(this.GetColumn(i));
            }
            return(dfRes);
        }
Пример #5
0
        internal static DF CBind(DF df1, DF df2)
        {
            DF dfRes = df1.Clone();

            for (int i = 1; i <= df2.NCol; i++)
            {
                dfRes.AddColumn(df2.GetColumn(i));
            }
            return(dfRes);
        }