use of org.opensearch.search.aggregations.bucket.terms.heuristic.PercentageScore in project OpenSearch by opensearch-project.
the class SignificanceHeuristicTests method testAssertions.
public void testAssertions() throws Exception {
testBackgroundAssertions(new MutualInformation(true, true), new MutualInformation(true, false));
testBackgroundAssertions(new ChiSquare(true, true), new ChiSquare(true, false));
testBackgroundAssertions(new GND(true), new GND(false));
testAssertions(new PercentageScore());
testAssertions(new JLHScore());
}
use of org.opensearch.search.aggregations.bucket.terms.heuristic.PercentageScore in project OpenSearch by opensearch-project.
the class SignificanceHeuristicTests method testBasicScoreProperties.
public void testBasicScoreProperties() {
basicScoreProperties(new JLHScore(), true);
basicScoreProperties(new GND(true), true);
basicScoreProperties(new PercentageScore(), true);
basicScoreProperties(new MutualInformation(true, true), false);
basicScoreProperties(new ChiSquare(true, true), false);
}
Aggregations