Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards


Class confidence_level

boost::histogram::utility::confidence_level — Confidence level for intervals.


// In header: <boost/histogram/utility/binomial_proportion_interval.hpp>

class confidence_level {
  // construct/copy/destruct
  explicit confidence_level(double);

  // public member functions
  template<typename T> explicit operator T() const noexcept;
  operator deviation() const noexcept;


Intervals become wider as the deviation value increases.

confidence_level public construct/copy/destruct

  1. explicit confidence_level(double cl);
    constructor from confidence level (a probability)

confidence_level public member functions

  1. template<typename T> explicit operator T() const noexcept;
    explicit conversion to numerical confidence level
  2. operator deviation() const noexcept;
    implicit conversion to units of standard deviation