Beispiel #1
0
 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];
     }
 }
Beispiel #2
0
 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;
     }
 }
Beispiel #3
0
 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;
     }
 }