...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::histogram::utility::binomial_proportion_interval — Common base class for interval calculators.
// In header: <boost/histogram/utility/binomial_proportion_interval.hpp> template<typename ValueType> class binomial_proportion_interval { public: // types typedef ValueType value_type; typedef std::pair< value_type, value_type > interval_type; // public member functions virtual interval_type operator()(value_type, value_type) const = 0; template<typename T> interval_type operator()(const accumulators::fraction< T > &) const noexcept; };
binomial_proportion_interval
public member functionsvirtual interval_type operator()(value_type successes, value_type failures) const = 0;Compute interval for given number of successes and failures.
Parameters: |
|
template<typename T> interval_type operator()(const accumulators::fraction< T > & fraction) const noexcept;Compute interval for a fraction accumulator.
Parameters: |
|