Search in sources :

Example 6 with ByteArrayList

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);
}
Also used : ByteArrayList(it.unimi.dsi.fastutil.bytes.ByteArrayList) ByteSet(it.unimi.dsi.fastutil.bytes.ByteSet) ByteOpenHashSet(it.unimi.dsi.fastutil.bytes.ByteOpenHashSet)

Example 7 with ByteArrayList

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;
}
Also used : ByteArrayList(it.unimi.dsi.fastutil.bytes.ByteArrayList)

Aggregations

ByteArrayList (it.unimi.dsi.fastutil.bytes.ByteArrayList)7 SecondaryTarget (com.ms.silverking.cloud.dht.SecondaryTarget)1 ByteList (it.unimi.dsi.fastutil.bytes.ByteList)1 ByteOpenHashSet (it.unimi.dsi.fastutil.bytes.ByteOpenHashSet)1 ByteSet (it.unimi.dsi.fastutil.bytes.ByteSet)1 ByteBuffer (java.nio.ByteBuffer)1 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1 CategoricalColumn (tech.tablesaw.api.CategoricalColumn)1 Column (tech.tablesaw.columns.Column)1 BitmapBackedSelection (tech.tablesaw.selection.BitmapBackedSelection)1 Selection (tech.tablesaw.selection.Selection)1