コード例 #1
0
        public void TestSignaturesV3_0_X()
        {
            DataFrameStatFunctions stat = _df.Stat();
            Column col = Column("age");

            Assert.IsType <DataFrame>(stat.SampleBy(
                                          col,
                                          new Dictionary <int, double> {
                { 1, 0.5 }
            },
                                          100));
        }
コード例 #2
0
        public void TestDataFrameStatFunctionSignatures()
        {
            DataFrameStatFunctions stat = _df.Stat();

            double[] result = stat.ApproxQuantile("age", new[] { 0.5, 0.5 }, 0.3);

            double cov = stat.Cov("age", "age");

            double corr = stat.Corr("age", "age", "pearson");

            corr = stat.Corr("age", "age");

            var       columnNames = new string[] { "age", "name" };
            DataFrame df          = stat.FreqItems(columnNames, 0.2);

            df = stat.FreqItems(columnNames);

            df = stat.SampleBy("age", new Dictionary <int, double> {
                { 1, 0.5 }
            }, 100);
        }