Class MultiDimensionalGrid

java.lang.Object
dev.nm.misc.datastructure.MultiDimensionalGrid
All Implemented Interfaces:
Iterable<Vector>

public class MultiDimensionalGrid extends Object implements Iterable<Vector>
An arbitrary dimensional grid. The grid points along each dimension are specified by a MultiDimensionalGrid.Discretization object. Elements inside this class are not ordered.
  • Constructor Details

    • MultiDimensionalGrid

      public MultiDimensionalGrid(Double[]... dimensions)
      Constructs a multi-dimensional grid of points.
      Parameters:
      dimensions - specify the grid points in each dimension
    • MultiDimensionalGrid

      public MultiDimensionalGrid(double[]... dimensions)
      Constructs a multi-dimensional grid of points.
      Parameters:
      dimensions - specify the grid points in each dimension
    • MultiDimensionalGrid

      public MultiDimensionalGrid(MultiDimensionalGrid.Discretization... discretizations)
      Constructs a multi-dimensional grid of points.
      Parameters:
      discretizations - specify the grid points in each dimension
  • Method Details