use of tech.tablesaw.selection.Selection in project symja_android_library by axkr.
the class FloatColumn method isIn.
public Selection isIn(final float... numbers) {
final Selection results = new BitmapBackedSelection();
final FloatRBTreeSet doubleSet = new FloatRBTreeSet(numbers);
for (int i = 0; i < size(); i++) {
if (doubleSet.contains(getFloat(i))) {
results.add(i);
}
}
return results;
}
use of tech.tablesaw.selection.Selection in project symja_android_library by axkr.
the class FloatColumn method isNotIn.
public Selection isNotIn(final float... numbers) {
final Selection results = new BitmapBackedSelection();
results.addRange(0, size());
results.andNot(isIn(numbers));
return results;
}
use of tech.tablesaw.selection.Selection in project symja_android_library by axkr.
the class ShortColumn method isIn.
public Selection isIn(final int... numbers) {
final Selection results = new BitmapBackedSelection();
final IntRBTreeSet intSet = new IntRBTreeSet(numbers);
for (int i = 0; i < size(); i++) {
if (intSet.contains(getInt(i))) {
results.add(i);
}
}
return results;
}
use of tech.tablesaw.selection.Selection 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.Selection 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;
}
Aggregations