Class to report on the distribution of a series of values.
Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).
Copyright (c) 2009-2016 dunnhumby Germany GmbH. All rights reserved.
Helper class useful for producing apache bench style output about value distributions. For example:
Performance note: the lessThanCount(), greaterThanCount() and percentValue() methods all sort the list of values stored in the Distribution instance. In general it is thus best to add all the values you're interested in, then call the results methods, so the list only needs to be sorted once.
Usage example: