public abstract class CharDistributionAnalysis
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int[] |
charToFreqOrder |
protected boolean |
done |
static int |
ENOUGH_DATA_THRESHOLD |
static int |
MINIMUM_DATA_THRESHOLD |
static float |
SURE_NO |
static float |
SURE_YES |
protected float |
typicalDistributionRatio |
Constructor and Description |
---|
CharDistributionAnalysis() |
Modifier and Type | Method and Description |
---|---|
float |
getConfidence() |
protected abstract int |
getOrder(byte[] buf,
int offset) |
boolean |
gotEnoughData() |
void |
handleData(byte[] buf,
int offset,
int length) |
void |
handleOneChar(byte[] buf,
int offset,
int charLength) |
void |
reset() |
void |
setOption() |
public static final float SURE_NO
public static final float SURE_YES
public static final int ENOUGH_DATA_THRESHOLD
public static final int MINIMUM_DATA_THRESHOLD
protected int[] charToFreqOrder
protected float typicalDistributionRatio
protected boolean done
public void handleData(byte[] buf, int offset, int length)
public void handleOneChar(byte[] buf, int offset, int charLength)
public float getConfidence()
public void reset()
public void setOption()
public boolean gotEnoughData()
protected abstract int getOrder(byte[] buf, int offset)
Copyright © 2014. All rights reserved