private static double getStandardDeviation(List<Long> samples, double average) {
        double sumSquared = 0;
        for (long sample : samples) {
            sumSquared += Math.pow(sample - average, 2);
        }
        return Math.sqrt(sumSquared / samples.size());
    }
This benchmarks performs a series of unique counting tests to analyse the HyperLogLog accuracy.
searchlib/src/test/java/com/yahoo/searchlib/aggregation/hll/HyperLogLogPrecisionBenchmark.java