It is assumed that there is an efficient method for assigning indices to the
underlying lattice.
This is the case with many
lattices, including the Leech lattice
(e.g., see [40]).
The codevectors of the wrapped spherical code are assigned to integers
according to their quantized gain, annulus, and order within their
annulus, as follows. Let
represent the
number of annuli of the shape codebook. Let
be the number of points
in the
th annulus of a shell, and let
be the total number of points
in the shape codebook. Assuming all indices start at 0, the
th point
within the
th annulus of the
th gain shell is assigned to the number
Both the encoder and decoder must compute this summation.
This can be made efficient by storing in memory the partial summations
, for
. The memory required
for this is equal to the total number of annuli in the codebook, which
is generally not large. For example, in the codebook
of rate 4, there are 36 total annuli.