public class DirichletJS extends JensenShannonDistance
tokenizer| Constructor and Description |
|---|
DirichletJS() |
DirichletJS(Tokenizer tokenizer,
double pseudoCount) |
| Modifier and Type | Method and Description |
|---|---|
double |
getPseudoCount() |
static void |
main(String[] argv) |
void |
setPseudoCount(double c) |
void |
setPseudoCount(Double c) |
protected double |
smoothedProbability(Token tok,
double freq,
double totalWeight)
smoothed probability of the token
|
String |
toString() |
backgroundProb, explainScore, prepare, score, trainasBagOfTokens, prepare, setStringWrapperPooladdExample, doMain, explainScore, getDistance, hasNextQuery, nextQuery, prepare, score, setDistanceInstancePoolpublic DirichletJS(Tokenizer tokenizer, double pseudoCount)
public DirichletJS()
public double getPseudoCount()
public void setPseudoCount(double c)
public void setPseudoCount(Double c)
protected double smoothedProbability(Token tok, double freq, double totalWeight)
smoothedProbability in class JensenShannonDistancepublic static void main(String[] argv)
Copyright © 2016. All rights reserved.