public class DictionaryFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DictionaryFactory.Type |
Constructor and Description |
---|
DictionaryFactory() |
Modifier and Type | Method and Description |
---|---|
static ADictionary |
create(ABitmap ubm) |
static ADictionary |
create(ABitmap ubm,
double sparsity) |
static ADictionary |
create(ABitmap ubm,
double sparsity,
boolean withZeroTuple) |
static ADictionary |
createWithAppendedZeroTuple(ABitmap ubm) |
static ADictionary |
createWithAppendedZeroTuple(ABitmap ubm,
double sparsity) |
static long |
getInMemorySize(int nrValues,
int nrColumns,
double tupleSparsity,
boolean lossy) |
static ADictionary |
moveFrequentToLastDictionaryEntry(ADictionary dict,
ABitmap ubm,
int nRow,
int largestIndex) |
static ADictionary |
read(DataInput in) |
public static ADictionary read(DataInput in) throws IOException
IOException
public static long getInMemorySize(int nrValues, int nrColumns, double tupleSparsity, boolean lossy)
public static ADictionary create(ABitmap ubm)
public static ADictionary create(ABitmap ubm, double sparsity, boolean withZeroTuple)
public static ADictionary create(ABitmap ubm, double sparsity)
public static ADictionary createWithAppendedZeroTuple(ABitmap ubm)
public static ADictionary createWithAppendedZeroTuple(ABitmap ubm, double sparsity)
public static ADictionary moveFrequentToLastDictionaryEntry(ADictionary dict, ABitmap ubm, int nRow, int largestIndex)
Copyright © 2021 The Apache Software Foundation. All rights reserved.