Exemple #1
0
 public final void copy(BitList other) {
   int olen = other.m_Bits.length;
   if (m_Bits == null || olen != m_Bits.length) {
     m_Bits = new long[olen];
     m_Size = other.size();
   }
   System.arraycopy(other.m_Bits, 0, m_Bits, 0, olen);
 }
 public void add(ClusStatistic other) {
   BitVectorStat or = (BitVectorStat) other;
   m_SumWeight += or.m_SumWeight;
   m_Bits.add(or.m_Bits);
   m_Modified = true;
 }
 public void subtractFromOther(ClusStatistic other) {
   BitVectorStat or = (BitVectorStat) other;
   m_SumWeight = or.m_SumWeight - m_SumWeight;
   m_Bits.subtractFromOther(or.m_Bits);
   m_Modified = true;
 }
 public void copy(ClusStatistic other) {
   BitVectorStat or = (BitVectorStat) other;
   m_SumWeight = or.m_SumWeight;
   m_Bits.copy(or.m_Bits);
   m_Modified = or.m_Modified;
 }
 public void reset() {
   m_SumWeight = 0.0;
   m_Bits.reset();
   m_Modified = true;
 }
 public void updateWeighted(DataTuple tuple, int idx) {
   m_SumWeight += tuple.getWeight();
   m_Bits.setBit(idx);
   m_Modified = true;
 }
 public void setSDataSize(int nbex) {
   m_Bits.resize(nbex);
   m_Modified = true;
 }
 public int getNbTuples() {
   return m_Bits.getNbOnes();
 }