Examples of BitVector


Examples of cern.colt.bitvector.BitVector

public void ensureCapacity(int minCapacity) {
  int oldCapacity = capacity;
  if (minCapacity > oldCapacity) {
      int newCapacity = (oldCapacity * 3)/2 + 1;
    if (newCapacity < minCapacitynewCapacity = minCapacity;
    BitVector vector = toBitVector();
    vector.setSize(newCapacity*bitsPerElement);
    this.bits = vector.elements();
    this.capacity = newCapacity;
  }
}
View Full Code Here

Examples of cern.colt.bitvector.BitVector

/**
* Returns the receiver seen as bitvector.
* WARNING: The bitvector and the receiver share the backing bits. Modifying one of them will affect the other.
*/
public BitVector toBitVector() {
  return new BitVector(this.bits, this.capacity*bitsPerElement);
}
 
View Full Code Here

Examples of cern.colt.bitvector.BitVector

* storage of the receiver.
*/
public void trimToSize() {
  int oldCapacity = capacity;
  if (size < oldCapacity) {
    BitVector vector = toBitVector();
    vector.setSize(size);
    this.bits = vector.elements();
    this.capacity = size;
  }
}
View Full Code Here

Examples of cern.colt.bitvector.BitVector

public void ensureCapacity(int minCapacity) {
  int oldCapacity = capacity;
  if (minCapacity > oldCapacity) {
      int newCapacity = (oldCapacity * 3)/2 + 1;
    if (newCapacity < minCapacitynewCapacity = minCapacity;
    BitVector vector = toBitVector();
    vector.setSize(newCapacity*bitsPerElement);
    this.bits = vector.elements();
    this.capacity = newCapacity;
  }
}
View Full Code Here

Examples of cern.colt.bitvector.BitVector

/**
* Returns the receiver seen as bitvector.
* WARNING: The bitvector and the receiver share the backing bits. Modifying one of them will affect the other.
*/
public BitVector toBitVector() {
  return new BitVector(this.bits, this.capacity*bitsPerElement);
}
 
View Full Code Here

Examples of cern.colt.bitvector.BitVector

* storage of the receiver.
*/
public void trimToSize() {
  int oldCapacity = capacity;
  if (size < oldCapacity) {
    BitVector vector = toBitVector();
    vector.setSize(size);
    this.bits = vector.elements();
    this.capacity = size;
  }
}
View Full Code Here

Examples of com.google.uzaygezen.core.BitVector

    }
    StreamingRollup<BitVector, BigIntegerContent> rollup = BoundedRollup.create(
      new BigIntegerContent(BigInteger.ZERO), cacheSize);
    Scan fullScan = new Scan();
    ResultScanner scanner = table.getScanner(fullScan);
    BitVector hilbertIndex = BitVectorFactories.OPTIMAL.apply(spec.sumBitsPerDimension());
    for (Result row : scanner) {
      hilbertIndex.copyFromBigEndian(row.getRow());
      for (int i = 0; i < path.length; ++i) {
        path[i] = path[i].clone();
      }
      BitVectorMath.split(hilbertIndex, path);
      // We should say the exact number of times. Saying one is correct, but
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.data.BitVector

          bits[d] = new Bit(false);
        }
      }
      if(!allFalse) {
        SingleObjectBundle oaa = new SingleObjectBundle();
        oaa.append(bitmeta, new BitVector(bits));
        apriori_db.insert(oaa);
      }
    }
    APRIORI apriori = new APRIORI(minpts);
    AprioriResult aprioriResult = apriori.run(apriori_db);
View Full Code Here

Examples of lupos.misc.BitVector

        }
    }
    this.vars = vars;
    bloomFilters = new LinkedList<BitVector>();
    for (int i = 0; i < vars.size(); i++)
      bloomFilters.add(new BitVector(NUMBEROFBITSFORBLOOMFILTER));
  }
View Full Code Here

Examples of lupos.misc.BitVector

      final int operandID) {

    for (final Bindings b : res) {
      final Iterator<BitVector> ibv = bloomFilters.iterator();
      for (final Variable v : vars) {
        final BitVector bv = ibv.next();
        // if (!bv.get((b.get(v).hashCode() %
        // NUMBEROFBITSFORBLOOMFILTER)))
        // System.out.println(b.get(v));
        bv.set(Math.abs(b.get(v).hashCode()
            % NUMBEROFBITSFORBLOOMFILTER));
      }
    }

    // System.out.println(bloomFilters.iterator().next().count());
    for (final TriplePattern tp : ctp) {
      // inform triple patterns of bloom filter!
      int i = 0;
      for (final Item item : tp) {
        if (item.isVariable()) {
          final Iterator<BitVector> ibv = bloomFilters.iterator();
          for (final Variable v : vars) {
            final BitVector bloomFilter = ibv.next();
            if (v.equals(item)) {
              BitVector[] bfa = tp.getBloomFilters();
              if (bfa == null) {
                bfa = new BitVector[3];
                bfa[i] = bloomFilter;
              } else {
                if (bfa[i] != null) {
                  if (!bfa[i].equals(bloomFilter))
                    for (int j = 0; j < bloomFilter.size(); j++)
                      if (!bloomFilter.get(j))
                        bfa[i].clear(j);
                } else
                  bfa[i] = bloomFilter;
              }
              tp.setBloomFilters(bfa);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.