Ejemplo n.º 1
0
 public Specialized(
     double spacing, N floor, boolean fill, Aggregates<? extends N> aggregates) {
   super(spacing, floor, fill);
   Util.Stats<N> stats = Util.stats(aggregates, true, true, true);
   N bottom = floor == null ? (N) stats.min : floor;
   contourLevels = LocalUtils.steps(bottom, stats.max, spacing);
 }
Ejemplo n.º 2
0
 public Specialized(int n, boolean fill, Aggregates<? extends N> aggregates) {
   super(n, fill);
   Util.Stats<N> stats = Util.stats(aggregates, true, true, true);
   double spacing = (stats.max.doubleValue() - stats.min.doubleValue()) / n;
   contourLevels = LocalUtils.steps(stats.min, stats.max, spacing);
 }