use of tech.tablesaw.selection.BitmapBackedSelection in project symja_android_library by axkr.
the class ShortColumn method isNotIn.
public Selection isNotIn(final int... numbers) {
final Selection results = new BitmapBackedSelection();
results.addRange(0, size());
results.andNot(isIn(numbers));
return results;
}
use of tech.tablesaw.selection.BitmapBackedSelection in project symja_android_library by axkr.
the class DoubleColumn method isNotIn.
public Selection isNotIn(final double... doubles) {
final Selection results = new BitmapBackedSelection();
results.addRange(0, size());
results.andNot(isIn(doubles));
return results;
}
use of tech.tablesaw.selection.BitmapBackedSelection in project symja_android_library by axkr.
the class DoubleColumn method isIn.
public Selection isIn(final double... doubles) {
final Selection results = new BitmapBackedSelection();
final DoubleRBTreeSet doubleSet = new DoubleRBTreeSet(doubles);
for (int i = 0; i < size(); i++) {
if (doubleSet.contains(getDouble(i))) {
results.add(i);
}
}
return results;
}
use of tech.tablesaw.selection.BitmapBackedSelection in project symja_android_library by axkr.
the class TextColumn method isNotIn.
@Override
public Selection isNotIn(Collection<String> strings) {
Selection results = new BitmapBackedSelection();
results.addRange(0, size());
results.andNot(isIn(strings));
return results;
}
use of tech.tablesaw.selection.BitmapBackedSelection in project symja_android_library by axkr.
the class Rows method head.
public static void head(int rowCount, Table oldTable, Table newTable) {
Selection rows = new BitmapBackedSelection(rowCount);
for (int i = 0; i < rowCount; i++) {
rows.add(i);
}
copyRowsToTable(rows, oldTable, newTable);
}
Aggregations