A CellSet
consists of a set of (typically two) axes, each populated with a sequence of members, and a collection of cells at the intersection of these axes.
Cell ordinals and coordinates
There are two ways to identify a particular cell: ordinal and coordinates. Suppose that there are p
axes, and each axis k
(k
between 0 and p - 1
) has Uk
positions. There are U
= U0 * ... * Up - 1
cells in total. Then:
ordinal
is an integer between 0 and U - 1
.coordinates
are a list of p
integers, indicating the cell's position on each axis. Each integer is between 0 and Up-1
.The ordinal number of a cell whose tuple ordinals are (S0, S1, ... Sp-1)
is
@author jhyde @version $Id: CellSet.java 368 2010-11-16 21:37:12Z jhyde $ @since Aug 22, 2006Σi=0p-1 Si . Ei
whereE0 = 1
andEi = Πi=0p-1 Uk
|
|