public class Tiling
extends java.lang.Object
Index are points in the original multidimensional index. Tiles are points in the tiled space.
Each tile has the same size, given by tileSize.
Constructor and Description |
---|
Tiling(int[] shape,
int[] chunk)
Create a Tiling
|
Modifier and Type | Method and Description |
---|---|
int |
compare(int[] p1,
int[] p2)
Create an ordering of index points based on which tile the point is in.
|
int |
order(int[] pt)
Get order based on which tile the pt belongs to
|
int[] |
tile(int[] pt)
Compute the tile
|
public Tiling(int[] shape, int[] chunk)
shape
- overall shape of the dataset's index spacechunk
- tile size. may be larger than the shape.public int[] tile(int[] pt)
pt
- index pointpublic int order(int[] pt)
pt
- index pointpublic int compare(int[] p1, int[] p2)
p1
- index point 1p2
- index point 2