|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.iosp.hdf5.Tiling
public class Tiling
A Tiling divides a multidimensional index into tiles. Abstraction of HDF5 chunking.
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 Summary | |
---|---|
Tiling(int[] shape,
int[] tileSize)
Create a Tiling |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tiling(int[] shape, int[] tileSize)
shape
- overall shape of the dataset's index spacetileSize
- tile size. may be larger than the shape.Method Detail |
---|
public int[] tile(int[] pt)
pt
- index point
public int order(int[] pt)
pt
- index point
public int compare(int[] p1, int[] p2)
p1
- index point 1p2
- index point 2
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |