public abstract class CharDistributionAnalysis extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
charToFreqOrder |
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
public void handleData(byte[] buf,
int offset,
int length)
public void handleOneChar(byte[] buf,
int offset,
int charLength)
public float getConfidence()
public final void reset()
public void setOption()
public boolean gotEnoughData()
protected abstract int getOrder(byte[] buf,
int offset)
Copyright © 2024. All rights reserved.