Package com.yahoo.search.dispatch
Class TopKEstimator
java.lang.Object
com.yahoo.search.dispatch.TopKEstimator
Use StudentT distribution and estimate how many hits you need from each partition
to to get the globally top-k documents with the desired probability
- Author:
- baldersheim
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TopKEstimator
public TopKEstimator(double freedom, double defaultProbability, double skewFactor)
-
-
Method Details
-
estimateK
public int estimateK(int k, int n) -
estimateK
public int estimateK(int k, int n, double p)
-