in src/main/java/org/apache/datasketches/hive/kll/GetPmfUDF.java [65:74]
public List<Double> evaluate(final BytesWritable serializedSketch, final Boolean inclusive, final Float... splitPoints) {
if (serializedSketch == null) { return null; }
final KllFloatsSketch sketch =
KllFloatsSketch.heapify(BytesWritableHelper.wrapAsMemory(serializedSketch));
if (sketch.isEmpty()) { return null; }
final double[] pmf = sketch.getPMF(Util.objectsToPrimitives(splitPoints),
inclusive ? QuantileSearchCriteria.INCLUSIVE: QuantileSearchCriteria.EXCLUSIVE);
if (pmf == null) { return null; }
return Util.primitivesToList(pmf);
}