@Test public void extractMaskOneDimensionOneBit() { HilbertIndexMasks masks = new HilbertIndexMasks(new MultiDimensionalSpec(Arrays.asList(1))); BitVector mu = BitVectorFactories.OPTIMAL.apply(1); masks.copyMaskTo(0, 0, mu); BitVector expected = TestUtils.createBitVector(1, 1); Assert.assertEquals(expected, mu); }
public void copyMaskTo(int i, int d, BitVector mu) { mu.copyFrom(masks[i]); mu.rotate(d); }
HilbertIndexMasks { public void copyMaskTo(int i, int d, BitVector mu) { mu.copyFrom(masks[i]); mu.rotate(d); } }
HilbertIndexMasks { public void copyMaskTo(int i, int d, BitVector mu) { mu.copyFrom(masks[i]); mu.rotate(d); } HilbertIndexMasks(MultiDimensionalSpec spec); }
HilbertIndexMasks { public void copyMaskTo(int i, int d, BitVector mu) { mu.copyFrom(masks[i]); mu.rotate(d); } HilbertIndexMasks(MultiDimensionalSpec spec); int getCardinality(int i); List<Integer> cardinalities(); void copyMaskTo(int i, int d, BitVector mu); }
HilbertIndexMasks { public void copyMaskTo(int i, int d, BitVector mu) { mu.copyFrom(masks[i]); mu.rotate(d); } HilbertIndexMasks(MultiDimensionalSpec spec); int getCardinality(int i); List<Integer> cardinalities(); void copyMaskTo(int i, int d, BitVector mu);  }