public class Probability extends Object
Constructor and Description |
---|
Probability(double prob,
float coverage) |
Probability(double prob,
float coverage,
long occurrences) |
Modifier and Type | Method and Description |
---|---|
float |
getCoverage()
The fraction of lookups that had occurrence counts > 0.
|
double |
getLogProb() |
long |
getOccurrences()
The number the longest ngram occurs in the corpus.
|
double |
getProb()
A probability-like value, but can be filled with any float >= 0.
|
String |
toString() |
public Probability(double prob, float coverage, long occurrences)
public Probability(double prob, float coverage)
public double getProb()
public double getLogProb()
public float getCoverage()
public long getOccurrences()