public final class MFB extends Object implements IEncoderPlus
| Modifier and Type | Field and Description |
|---|---|
static int |
good |
static int |
misses
Maps a long to a integer value.
|
static String |
NONE |
boolean |
stop
Stop growing
|
| Constructor and Description |
|---|
MFB() |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateBits()
Calculates the number of bits needed to encode a feature
|
static void |
clearData()
Clear the data
|
static short |
getFeatureBits(String a) |
HashMap<String,Integer> |
getFeatureCounter() |
static HashMap<String,HashMap<String,Integer>> |
getFeatureSet() |
int |
getValue(String t,
String v)
Get the integer place holder of the string value v of the type a
|
static int |
getValueS(String a,
String v)
Static version of getValue
|
int |
hasValue(String a,
String v) |
static String |
printBits(int k) |
void |
read(DataInputStream din) |
int |
register(String a,
String v)
Register an attribute class, if it not exists and add a possible value
|
static String[] |
reverse(HashMap<String,Integer> v) |
int |
size() |
String |
toString() |
static void |
writeData(DataOutputStream dos)
Write the data
|
public boolean stop
public static final String NONE
public static int misses
public static int good
public int size()
public final int register(String a, String v)
register in interface IEncoderPlustype - type2 - public void calculateBits()
public static final short getFeatureBits(String a)
public final int getValue(String t, String v)
public static final int getValueS(String a, String v)
getValuepublic static String printBits(int k)
public static void writeData(DataOutputStream dos) throws IOException
dos - IOExceptionpublic void read(DataInputStream din) throws IOException
IOExceptionpublic static void clearData()
public HashMap<String,Integer> getFeatureCounter()
getFeatureCounter in interface IEncoderPlusCopyright © 2013. All rights reserved.