Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
0
        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");
        }