Package org.apache.datasketches.thetacommon
package org.apache.datasketches.thetacommon
This package contains common tools and methods for the theta,
tuple, tuple/* and fdt packages.
-
ClassDescriptionThis class enables the estimation of error bounds given a sample set size, the sampling probability theta, the number of standard deviations and a simple noDataSeen flag.This class is used to compute the bounds on the estimate of the ratio B / A, where: A is a Theta Sketch of population PopA. B is a Theta Sketch of population PopB that is a subset of A, obtained by an intersection of A with some other Theta Sketch C, which acts like a predicate or selection clause. The estimate of the ratio PopB/PopA is BoundsOnRatiosInThetaSketchedSets.getEstimateOfBoverA(A, B). The Upper Bound estimate on the ratio PopB/PopA is BoundsOnRatiosInThetaSketchedSets.getUpperBoundForBoverA(A, B). The Lower Bound estimate on the ratio PopB/PopA is BoundsOnRatiosInThetaSketchedSets.getLowerBoundForBoverA(A, B). Note: If B is formed as an intersection of A and some other set C, then the theta of B is guaranteed to be less than or equal to the theta of A.This class is used to compute the bounds on the estimate of the ratio B / A, where: A is a Tuple or Theta Sketch of population PopA. B is a Tuple or Theta Sketch of population PopB that is a subset of A, obtained by an intersection of A with some other Tuple or Theta Sketch C, which acts like a predicate or selection clause. The estimate of the ratio PopB/PopA is BoundsOnRatiosInTupleSketchedSets.getEstimateOfBoverA(A, B). The Upper Bound estimate on the ratio PopB/PopA is BoundsOnRatiosInTupleSketchedSets.getUpperBoundForBoverA(A, B). The Lower Bound estimate on the ratio PopB/PopA is BoundsOnRatiosInTupleSketchedSets.getLowerBoundForBoverA(A, B). Note: If B is formed as an intersection of A and some other set C, then the theta of B is guaranteed to be less than or equal to the theta of A.Helper class for the common hash table methods.Simplifies and speeds up set operations by resolving specific corner cases.A not B actionsList of corner casesIntersection actionsList of union actionsUtility methods for the Theta Family of sketches