コード例 #1
0
ファイル: PivotTests.cs プロジェクト: skossovs/Pivoteer
        public void TestSmallPivotGenerator()
        {
            var data = SmallDatasets.GenerateFullFlatData();

            var typeWrapper = new Pivot.Accessories.Mapping.TypeWrapper <TwoByTwo, AggregationFunctions>();
            var generator   = new PivotGenerator <TwoByTwo, AggregationFunctions>(typeWrapper);

            var mtx = generator.GeneratePivot(data).Matrix;

            DataOutput.CSVHelper.SaveCSVFile(mtx, "SmallTwoByTwoMatrix.csv");
        }
コード例 #2
0
ファイル: PivotTests.cs プロジェクト: skossovs/Pivoteer
        public void TestPivotGenerator()
        {
            var data = ShopRiteSalesData.GenerateFullFlatData();

            var typeWrapper = new Pivot.Accessories.Mapping.TypeWrapper <ShopRiteSales, AggregationFunctions>();
            var generator   = new PivotGenerator <ShopRiteSales, AggregationFunctions>(typeWrapper);

            var mtx = generator.GeneratePivot(data).Matrix;

            DataOutput.CSVHelper.SaveCSVFile(mtx, "ShopRitesSalesPivot.csv");
        }