use of it.unimi.dsi.fastutil.bytes.ByteArrayList in project symja_android_library by axkr.
the class BooleanColumn method unique.
@Override
public BooleanColumn unique() {
ByteSet count = new ByteOpenHashSet(3);
for (byte next : data) {
count.add(next);
}
ByteArrayList list = new ByteArrayList(count);
return new BooleanColumn(name() + " Unique values", list);
}
use of it.unimi.dsi.fastutil.bytes.ByteArrayList in project symja_android_library by axkr.
the class BooleanColumn method asDoubleColumn.
public DoubleColumn asDoubleColumn() {
DoubleColumn numberColumn = DoubleColumn.create(this.name(), size());
ByteArrayList data = data();
for (int i = 0; i < size(); i++) {
numberColumn.set(i, data.getByte(i));
}
return numberColumn;
}
Aggregations