public class IndependenceChiSquared extends Independence
Described as: "can be used for tasks that require high precision, against both short and long queries."
Constructor and Description |
---|
IndependenceChiSquared()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
score(double freq,
double expected)
Computes distance from independence
|
String |
toString() |
public double score(double freq, double expected)
Independence
score
in class Independence
freq
- actual term frequencyexpected
- expected term frequencypublic String toString()
toString
in class Independence
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.