# Package org.apache.datasketches.pig.kll

Pig UDFs for KLL quantiles sketches.

See: Description

Class Summary
DataToSketch: This UDF is to build sketches from data.
DataToSketch.Final: Class used to calculate the final pass of an Algebraic sketch operation.
DataToSketch.Initial: Class used to calculate the initial pass of an Algebraic sketch operation.
DataToSketch.Intermediate: Class used to calculate the intermediate pass of an Algebraic sketch operation.
GetCdf: This UDF is to get an approximation to the Cumulative Distribution Function (CDF) of the input stream given a sketch and a set of split points - an array of m unique, monotonically increasing float values that divide the real number line into m+1 consecutive disjoint intervals.
GetK: This UDF is to get the parameter K from a given sketch.
GetPmf: This UDF is to get an approximation to the Probability Mass Function (PMF) of the input stream given a sketch and a set of split points - an array of m unique, monotonically increasing float values that divide the real number line into m+1 consecutive disjoint intervals.
GetQuantile: This UDF is to get a quantile value from a given sketch.
GetQuantiles: This UDF is to get a list of quantile values from a given sketch and a list of fractions or a number of evenly spaced intervals.
GetRank: This UDF is to get a normalized rank for a given value from a given sketch.
SketchToString: This UDF is to get a human-readable summary of a given sketch.
UnionSketch: This UDF is to merge sketches.
UnionSketch.Final: Class used to calculate the final pass of an Algebraic union operation.
UnionSketch.Initial: Class used to calculate the initial pass of an Algebraic sketch operation.
UnionSketch.Intermediate: Class used to calculate the intermediate pass of an Algebraic union operation.

## Package org.apache.datasketches.pig.kll Description

Pig UDFs for KLL quantiles sketches. See https://datasketches.apache.org/docs/Quantiles/KLLSketch.html

Author:
  Alexander Saydakov