public final class MFC extends Object implements IEncoderPlus
| Modifier and Type | Field and Description |
|---|---|
static int |
good |
static int |
misses
Maps a long to a integer value.
|
NONE| Constructor and Description |
|---|
MFC() |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateBits()
Calculates the number of bits needed to encode a feature
|
void |
clearData()
Clear the data
|
short |
getFeatureBits(String a) |
HashMap<String,Integer> |
getFeatureCounter() |
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
|
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
|
String[] |
reverse(HashMap<String,Integer> v) |
int |
size() |
String |
toString() |
void |
writeData(DataOutputStream dos)
Write the data
|
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 final short getFeatureBits(String a)
public final int getValue(String t, String v)
public final int getValueS(String a, String v)
getValuepublic static String printBits(int k)
public void writeData(DataOutputStream dos) throws IOException
dos - IOExceptionpublic void read(DataInputStream din) throws IOException
IOExceptionpublic void clearData()
public HashMap<String,Integer> getFeatureCounter()
getFeatureCounter in interface IEncoderPlusCopyright © 2013. All rights reserved.