Boost C++ Libraries

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

PrevUpHomeNext

Class deviation

boost::histogram::utility::deviation — Confidence level in units of deviations for intervals.

Synopsis

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


class deviation {
public:
  // construct/copy/destruct
  explicit deviation(double);

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

Description

Intervals become wider as the deviation value increases. The standard deviation corresponds to a value of 1 and corresponds to 68.3 % confidence level. The conversion between confidence level and deviations is based on a two-sided interval on the normal distribution.

deviation public construct/copy/destruct

  1. explicit deviation(double d);
    constructor from units of standard deviations

deviation public member functions

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

PrevUpHomeNext