public void Build(PivotGroupIndex pgi, int num_groups) { this.DB = pgi.DB; if (num_groups <= 0) { num_groups = pgi.GROUPS.Length; } this.InitGROUPS (num_groups); for (int i = 0; i < num_groups; ++i) { this.GROUPS[i] = pgi.GROUPS[i]; } }
public void Build(string basename, PivotGroupIndex pgi, int num_groups = 0) { this.DB = pgi.DB; if (num_groups <= 0) { num_groups = pgi.GROUPS.Length; } this.GROUPS = new DiskPivotGroup[num_groups]; for (int i = 0; i < num_groups; ++i) { var g = new DiskPivotGroup(); g.Build (pgi.GROUPS[i], basename + "-" + i); this.GROUPS[i] = g; } }
public void Build(PivotGroupIndex pgi, int num_groups, double approx_factor) { this.DB = pgi.DB; if (num_groups <= 0) { num_groups = pgi.GROUPS.Length; } this.GROUPS = new PivotGroupApprox[num_groups]; for (int i = 0; i < num_groups; ++i) { var g = new PivotGroupApprox(); g.Build(pgi.GROUPS[i], approx_factor); this.GROUPS[i] = g; } }