Пример #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);
 }
Пример #2
0
 public void add(ClusStatistic other) {
   BitVectorStat or = (BitVectorStat) other;
   m_SumWeight += or.m_SumWeight;
   m_Bits.add(or.m_Bits);
   m_Modified = true;
 }
Пример #3
0
 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;
 }
Пример #4
0
 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;
 }
Пример #5
0
 public void reset() {
   m_SumWeight = 0.0;
   m_Bits.reset();
   m_Modified = true;
 }
Пример #6
0
 public void updateWeighted(DataTuple tuple, int idx) {
   m_SumWeight += tuple.getWeight();
   m_Bits.setBit(idx);
   m_Modified = true;
 }
Пример #7
0
 public void setSDataSize(int nbex) {
   m_Bits.resize(nbex);
   m_Modified = true;
 }
Пример #8
0
 public int getNbTuples() {
   return m_Bits.getNbOnes();
 }