Interface ShlosserJackknifeEstimator
public interface ShlosserJackknifeEstimator
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic intdistinctCount(int numVals, int[] frequencies, int[] freqCounts, int nRows, int sampleSize) Peter J.
-
Field Details
-
SHLOSSER_JACKKNIFE_ALPHA
static final double SHLOSSER_JACKKNIFE_ALPHA- See Also:
-
-
Method Details
-
distinctCount
static int distinctCount(int numVals, int[] frequencies, int[] freqCounts, int nRows, int sampleSize) Peter J. Haas, Jeffrey F. Naughton, S. Seshadri, and Lynne Stokes. 1995. Sampling-Based Estimation of the Number of Distinct Values of an Attribute. VLDB'95, Section 5.2, recommended estimator by the authors- Parameters:
numVals- The number of unique values in the samplefrequencies- The Frequencies of the different unique valuesfreqCounts- The inverse histogram of frequencies. counts extractednRows- The original number of rows in the entire inputsampleSize- The number of rows in the sample- Returns:
- an estimation of number of distinct values.
-