BitSet b = featureVector.getNotNullMask();
TIntFloatHashMap vals = new TIntFloatHashMap();
for(int i = b.nextSetBit(0); i >= 0; i = b.nextSetBit(i + 1)) {
vals.put(i, (float) (featureVector.doubleValue(i) * idf.get(i)));
}
return new SparseFloatVector(vals, featureVector.getDimensionality());
}