2982 lines
220 KiB
XML
2982 lines
220 KiB
XML
<?xml version="1.0" standalone="yes"?>
|
|
<library-reference><header name="boost/histogram.hpp">
|
|
<para>Includes all standard headers of the Boost.Histogram library. </para><para>Extra headers not automatically included are:<itemizedlist>
|
|
<listitem><para><ulink url="histogram/reference.html#header.boost.histogram.ostream_hpp">boost/histogram/ostream.hpp</ulink></para>
|
|
</listitem><listitem><para><ulink url="histogram/reference.html#header.boost.histogram.axis.ostream_hpp">boost/histogram/axis/ostream.hpp</ulink></para>
|
|
</listitem><listitem><para><ulink url="histogram/reference.html#header.boost.histogram.accumulators.ostream_hpp">boost/histogram/accumulators/ostream.hpp</ulink></para>
|
|
</listitem><listitem><para><ulink url="histogram/reference.html#header.boost.histogram.serialization_hpp">boost/histogram/serialization.hpp</ulink> </para>
|
|
</listitem></itemizedlist>
|
|
</para></header>
|
|
<header name="boost/histogram/histogram.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<class name="histogram"><template>
|
|
<template-type-parameter name="Axes"><purpose><para>std::tuple of axis types OR std::vector of an axis type or <classname alt="boost::histogram::axis::variant">axis::variant</classname> </para></purpose></template-type-parameter>
|
|
<template-type-parameter name="Storage"><purpose><para>class that implements the storage interface </para></purpose></template-type-parameter>
|
|
</template><purpose>Central class of the histogram library. </purpose><description><para>Histogram uses the call operator to insert data, like the <ulink url="https://www.boost.org/doc/libs/develop/doc/html/accumulators.html">Boost.Accumulators</ulink>.</para><para>Use factory functions (see <ulink url="histogram/reference.html#header.boost.histogram.make_histogram_hpp">make_histogram.hpp</ulink> and <ulink url="histogram/reference.html#header.boost.histogram.make_profile_hpp">make_profile.hpp</ulink>) to conveniently create histograms rather than calling the ctors directly.</para><para>Use the <ulink url="boost/histogram/indexed.html">indexed</ulink> range generator to iterate over filled histograms, which is convenient and faster than hand-written loops for multi-dimensional histograms.</para><para>
|
|
</para></description><typedef name="axes_type"><type>Axes</type></typedef>
|
|
<typedef name="storage_type"><type>Storage</type></typedef>
|
|
<typedef name="value_type"><type>typename storage_type::value_type</type></typedef>
|
|
<typedef name="iterator"><type>typename storage_type::iterator</type></typedef>
|
|
<typedef name="const_iterator"><type>typename storage_type::const_iterator</type></typedef>
|
|
<typedef name="multi_index_type"><type><emphasis>unspecified</emphasis></type></typedef>
|
|
<method-group name="public member functions">
|
|
<method name="rank" cv="const noexcept"><type>constexpr unsigned</type><purpose>Number of axes (dimensions). </purpose></method>
|
|
<method name="size" cv="const noexcept"><type>std::size_t</type><purpose>Total number of bins (including underflow/overflow). </purpose></method>
|
|
<method name="reset"><type>void</type><purpose>Reset all bins to default initialized values. </purpose></method>
|
|
<method name="axis" cv="const"><type>decltype(auto)</type><template>
|
|
<template-nontype-parameter name="N"><type>unsigned</type><default>0</default></template-nontype-parameter>
|
|
</template><parameter name=""><paramtype>std::integral_constant< unsigned, N ></paramtype><default>{}</default></parameter><purpose>Get N-th axis using a compile-time number. </purpose><description><para>This version is more efficient than the one accepting a run-time number. </para></description></method>
|
|
<method name="axis" cv="const"><type>decltype(auto)</type><parameter name="i"><paramtype>unsigned</paramtype></parameter><purpose>Get N-th axis with run-time number. </purpose><description><para>Prefer the version that accepts a compile-time number, if you can use it. </para></description></method>
|
|
<method name="for_each_axis" cv="const"><type>auto</type><template>
|
|
<template-type-parameter name="Unary"/>
|
|
</template><parameter name="unary"><paramtype>Unary &&</paramtype></parameter><purpose>Apply unary functor/function to each axis. </purpose></method>
|
|
<method name="operator()"><type>iterator</type><template>
|
|
<template-type-parameter name="T0"/>
|
|
<template-nontype-parameter name="Ts"><type>class...</type></template-nontype-parameter>
|
|
<template-type-parameter name=""><default>std::enable_if_t<(detail::is_tuple<T0>::value == false || sizeof...(Ts) > 0</default></template-type-parameter>
|
|
</template><parameter name="arg0"><paramtype>const T0 &</paramtype></parameter><parameter name="args"><paramtype>const Ts &...</paramtype></parameter><purpose>Fill histogram with values, an optional weight, and/or a sample. </purpose><description><para>Returns iterator to located cell.</para><para>Arguments are passed in order to the axis objects. Passing an argument type that is not convertible to the value type accepted by the axis or passing the wrong number of arguments causes a throw of <computeroutput>std::invalid_argument</computeroutput>.</para><para><emphasis role="bold">Optional weight</emphasis></para><para>An optional weight can be passed as the first or last argument with the <ulink url="boost/histogram/weight.html">weight</ulink> helper function. Compilation fails if the storage elements do not support weights.</para><para><emphasis role="bold">Samples</emphasis></para><para>If the storage elements accept samples, pass them with the sample helper function in addition to the axis arguments, which can be the first or last argument. The <ulink url="boost/histogram/sample.html">sample</ulink> helper function can pass one or more arguments to the storage element. If samples and weights are used together, they can be passed in any order at the beginning or end of the argument list.</para><para><emphasis role="bold">Axis with multiple arguments</emphasis></para><para>If the histogram contains an axis which accepts a <computeroutput>std::tuple</computeroutput> of arguments, the arguments for that axis need to be passed as a <computeroutput>std::tuple</computeroutput>, for example, <computeroutput>std::make_tuple(1.2, 2.3)</computeroutput>. If the histogram contains only this axis and no other, the arguments can be passed directly. </para></description></method>
|
|
<method name="operator()"><type>iterator</type><template>
|
|
<template-nontype-parameter name="Ts"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="args"><paramtype>const std::tuple< Ts... > &</paramtype></parameter><purpose>Fill histogram with values, an optional weight, and/or a sample from a <computeroutput>std::tuple</computeroutput>. </purpose></method>
|
|
<method name="fill"><type>void</type><template>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterable<Iterable></default></template-type-parameter>
|
|
</template><parameter name="args"><paramtype>const Iterable &</paramtype><description><para>iterable as explained in the long description. </para></description></parameter><purpose>Fill histogram with several values at once. </purpose><description><para>The argument must be an iterable with a size that matches the rank of the histogram. The element of an iterable may be 1) a value or 2) an iterable with contiguous storage over values or 3) a variant of 1) and 2). Sub-iterables must have the same length.</para><para>Values are passed to the corresponding histogram axis in order. If a single value is passed together with an iterable of values, the single value is treated like an iterable with matching length of copies of this value.</para><para>If the histogram has only one axis, an iterable of values may be passed directly.</para><para>
|
|
</para></description></method>
|
|
<method name="fill"><type>void</type><template>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterable<Iterable></default></template-type-parameter>
|
|
</template><parameter name="args"><paramtype>const Iterable &</paramtype><description><para>iterable of values. </para></description></parameter><parameter name="weights"><paramtype>const <classname>weight_type</classname>< T > &</paramtype><description><para>single weight or an iterable of weights. </para></description></parameter><purpose>Fill histogram with several values and weights at once. </purpose><description><para>
|
|
</para></description></method>
|
|
<method name="fill"><type>void</type><template>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterable<Iterable></default></template-type-parameter>
|
|
</template><parameter name="weights"><paramtype>const <classname>weight_type</classname>< T > &</paramtype><description><para>single weight or an iterable of weights. </para></description></parameter><parameter name="args"><paramtype>const Iterable &</paramtype><description><para>iterable of values. </para></description></parameter><purpose>Fill histogram with several values and weights at once. </purpose><description><para>
|
|
</para></description></method>
|
|
<method name="fill"><type>void</type><template>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-nontype-parameter name="Ts"><type>class...</type></template-nontype-parameter>
|
|
<template-type-parameter name=""><default>detail::requires_iterable<Iterable></default></template-type-parameter>
|
|
</template><parameter name="args"><paramtype>const Iterable &</paramtype><description><para>iterable of values. </para></description></parameter><parameter name="samples"><paramtype>const <classname>sample_type</classname>< std::tuple< Ts... >> &</paramtype><description><para>single sample or an iterable of samples. </para></description></parameter><purpose>Fill histogram with several values and samples at once. </purpose><description><para>
|
|
</para></description></method>
|
|
<method name="fill"><type>void</type><template>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterable<Iterable></default></template-type-parameter>
|
|
</template><parameter name="samples"><paramtype>const <classname>sample_type</classname>< T > &</paramtype><description><para>single sample or an iterable of samples. </para></description></parameter><parameter name="args"><paramtype>const Iterable &</paramtype><description><para>iterable of values. </para></description></parameter><purpose>Fill histogram with several values and samples at once. </purpose><description><para>
|
|
</para></description></method>
|
|
<method name="fill"><type>void</type><template>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name="T"/>
|
|
<template-nontype-parameter name="Ts"><type>class...</type></template-nontype-parameter>
|
|
<template-type-parameter name=""><default>detail::requires_iterable<Iterable></default></template-type-parameter>
|
|
</template><parameter name="args"><paramtype>const Iterable &</paramtype></parameter><parameter name="weights"><paramtype>const <classname>weight_type</classname>< T > &</paramtype></parameter><parameter name="samples"><paramtype>const <classname>sample_type</classname>< std::tuple< Ts... >> &</paramtype></parameter></method>
|
|
<method name="fill"><type>void</type><template>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name="U"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterable<Iterable></default></template-type-parameter>
|
|
</template><parameter name="samples"><paramtype>const <classname>sample_type</classname>< T > &</paramtype></parameter><parameter name="weights"><paramtype>const <classname>weight_type</classname>< U > &</paramtype></parameter><parameter name="args"><paramtype>const Iterable &</paramtype></parameter></method>
|
|
<method name="fill"><type>void</type><template>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name="U"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterable<Iterable></default></template-type-parameter>
|
|
</template><parameter name="weights"><paramtype>const <classname>weight_type</classname>< T > &</paramtype></parameter><parameter name="samples"><paramtype>const <classname>sample_type</classname>< U > &</paramtype></parameter><parameter name="args"><paramtype>const Iterable &</paramtype></parameter></method>
|
|
<method name="fill"><type>void</type><template>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name="U"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterable<Iterable></default></template-type-parameter>
|
|
</template><parameter name="args"><paramtype>const Iterable &</paramtype></parameter><parameter name="samples"><paramtype>const <classname>sample_type</classname>< T > &</paramtype></parameter><parameter name="weights"><paramtype>const <classname>weight_type</classname>< U > &</paramtype></parameter></method>
|
|
<method name="at"><type>decltype(auto)</type><template>
|
|
<template-nontype-parameter name="Is"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="i"><paramtype>axis::index_type</paramtype><description><para>index of first axis. </para></description></parameter><parameter name="is"><paramtype>Is...</paramtype><description><para>indices of second, third, ... axes. </para></description></parameter><purpose>Access cell value at integral indices. </purpose><description><para>You can pass indices as individual arguments, as a std::tuple of integers, or as an interable range of integers. Passing the wrong number of arguments causes a throw of std::invalid_argument. Passing an index which is out of bounds causes a throw of std::out_of_range.</para><para>
|
|
|
|
</para></description><returns><para>reference to cell value. </para>
|
|
</returns></method>
|
|
<method name="at" cv="const"><type>decltype(auto)</type><template>
|
|
<template-nontype-parameter name="Is"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="i"><paramtype>axis::index_type</paramtype></parameter><parameter name="is"><paramtype>Is...</paramtype></parameter><purpose>Access cell value at integral indices (read-only). </purpose></method>
|
|
<method name="at"><type>decltype(auto)</type><parameter name="is"><paramtype>const <classname>multi_index_type</classname> &</paramtype></parameter><purpose>Access cell value at integral indices stored in iterable. </purpose></method>
|
|
<method name="at" cv="const"><type>decltype(auto)</type><parameter name="is"><paramtype>const <classname>multi_index_type</classname> &</paramtype></parameter><purpose>Access cell value at integral indices stored in iterable (read-only). </purpose></method>
|
|
<method name="operator[]"><type>decltype(auto)</type><parameter name="i"><paramtype>axis::index_type</paramtype></parameter><purpose>Access value at index (for rank = 1). </purpose></method>
|
|
<method name="operator[]" cv="const"><type>decltype(auto)</type><parameter name="i"><paramtype>axis::index_type</paramtype></parameter><purpose>Access value at index (for rank = 1, read-only). </purpose></method>
|
|
<method name="operator[]"><type>decltype(auto)</type><parameter name="is"><paramtype>const <classname>multi_index_type</classname> &</paramtype></parameter><purpose>Access value at index tuple. </purpose></method>
|
|
<method name="operator[]" cv="const"><type>decltype(auto)</type><parameter name="is"><paramtype>const <classname>multi_index_type</classname> &</paramtype></parameter><purpose>Access value at index tuple (read-only). </purpose></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="A"/>
|
|
<template-type-parameter name="S"/>
|
|
</template><parameter name="rhs"><paramtype>const <classname>histogram</classname>< A, S > &</paramtype></parameter><purpose>Equality operator, tests equality for all axes and the storage. </purpose></method>
|
|
<method name="operator!=" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="A"/>
|
|
<template-type-parameter name="S"/>
|
|
</template><parameter name="rhs"><paramtype>const <classname>histogram</classname>< A, S > &</paramtype></parameter><purpose>Negation of the equality operator. </purpose></method>
|
|
<method name="operator+="><type><classname>histogram</classname> &</type><template>
|
|
<template-type-parameter name="A"/>
|
|
<template-type-parameter name="S"/>
|
|
</template><parameter name="rhs"><paramtype>const <classname>histogram</classname>< A, S > &</paramtype></parameter><purpose>Add values of another histogram. </purpose><description><para>This operator is only available if the value_type supports operator+=.</para><para>Both histograms must be compatible to be addable. The histograms are compatible, if the axes are either all identical. If the axes only differ in the states of their discrete growing axis types, then they are also compatible. The discrete growing axes are merged in this case. </para></description></method>
|
|
<method name="operator+="><type><classname>histogram</classname> &</type><template>
|
|
<template-type-parameter name="S"/>
|
|
</template><parameter name="rhs"><paramtype>const <classname>histogram</classname>< axes_type, S > &</paramtype></parameter></method>
|
|
<method name="operator-="><type><classname>histogram</classname> &</type><template>
|
|
<template-type-parameter name="A"/>
|
|
<template-type-parameter name="S"/>
|
|
</template><parameter name="rhs"><paramtype>const <classname>histogram</classname>< A, S > &</paramtype></parameter><purpose>Subtract values of another histogram. </purpose><description><para>This operator is only available if the value_type supports operator-=. </para></description></method>
|
|
<method name="operator *="><type><classname>histogram</classname> &</type><template>
|
|
<template-type-parameter name="A"/>
|
|
<template-type-parameter name="S"/>
|
|
</template><parameter name="rhs"><paramtype>const <classname>histogram</classname>< A, S > &</paramtype></parameter><purpose>Multiply by values of another histogram. </purpose><description><para>This operator is only available if the value_type supports operator*=. </para></description></method>
|
|
<method name="operator/="><type><classname>histogram</classname> &</type><template>
|
|
<template-type-parameter name="A"/>
|
|
<template-type-parameter name="S"/>
|
|
</template><parameter name="rhs"><paramtype>const <classname>histogram</classname>< A, S > &</paramtype></parameter><purpose>Divide by values of another histogram. </purpose><description><para>This operator is only available if the value_type supports operator/=. </para></description></method>
|
|
<method name="operator *="><type><classname>histogram</classname> &</type><parameter name="x"><paramtype>const double</paramtype></parameter><purpose>Multiply all values with a scalar. </purpose><description><para>This operator is only available if the value_type supports operator*=. </para></description></method>
|
|
<method name="operator/="><type><classname>histogram</classname> &</type><parameter name="x"><paramtype>const double</paramtype></parameter><purpose>Divide all values by a scalar. </purpose><description><para>This operator is only available if operator*= is available. </para></description></method>
|
|
<method name="begin" cv="noexcept"><type>iterator</type><purpose>Return value iterator to the beginning of the histogram. </purpose></method>
|
|
<method name="end" cv="noexcept"><type>iterator</type><purpose>Return value iterator to the end in the histogram. </purpose></method>
|
|
<method name="begin" cv="const noexcept"><type>const_iterator</type><purpose>Return value iterator to the beginning of the histogram (read-only). </purpose></method>
|
|
<method name="end" cv="const noexcept"><type>const_iterator</type><purpose>Return value iterator to the end in the histogram (read-only). </purpose></method>
|
|
<method name="cbegin" cv="const noexcept"><type>const_iterator</type><purpose>Return value iterator to the beginning of the histogram (read-only). </purpose></method>
|
|
<method name="cend" cv="const noexcept"><type>const_iterator</type><purpose>Return value iterator to the end in the histogram (read-only). </purpose></method>
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name="ar"><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor cv="= default"/>
|
|
<constructor specifiers="explicit"><template>
|
|
<template-type-parameter name="A"/>
|
|
<template-type-parameter name="S"/>
|
|
</template><parameter name="rhs"><paramtype><classname>histogram</classname>< A, S > &&</paramtype></parameter></constructor>
|
|
<constructor specifiers="explicit"><template>
|
|
<template-type-parameter name="A"/>
|
|
<template-type-parameter name="S"/>
|
|
</template><parameter name="rhs"><paramtype>const <classname>histogram</classname>< A, S > &</paramtype></parameter></constructor>
|
|
<copy-assignment><type><classname>histogram</classname> &</type><template>
|
|
<template-type-parameter name="A"/>
|
|
<template-type-parameter name="S"/>
|
|
</template><parameter name="rhs"><paramtype><classname>histogram</classname>< A, S > &&</paramtype></parameter></copy-assignment>
|
|
<copy-assignment><type><classname>histogram</classname> &</type><template>
|
|
<template-type-parameter name="A"/>
|
|
<template-type-parameter name="S"/>
|
|
</template><parameter name="rhs"><paramtype>const <classname>histogram</classname>< A, S > &</paramtype></parameter></copy-assignment>
|
|
<constructor><template>
|
|
<template-type-parameter name="A"/>
|
|
<template-type-parameter name=""><default>detail::requires_axes<A></default></template-type-parameter>
|
|
</template><parameter name="a"><paramtype>A &&</paramtype></parameter><parameter name="s"><paramtype>Storage</paramtype></parameter></constructor>
|
|
<constructor specifiers="explicit"><parameter name="axes"><paramtype>Axes</paramtype></parameter></constructor>
|
|
<constructor specifiers="explicit"><template>
|
|
<template-nontype-parameter name="As"><type>class...</type></template-nontype-parameter>
|
|
<template-type-parameter name=""><default>detail::requires_axes<std::tuple<std::decay_t<As>...>></default></template-type-parameter>
|
|
</template><parameter name="as"><paramtype>As &&...</paramtype></parameter></constructor>
|
|
</class>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<function name="operator+"><type>auto</type><template>
|
|
<template-type-parameter name="A1"/>
|
|
<template-type-parameter name="S1"/>
|
|
<template-type-parameter name="A2"/>
|
|
<template-type-parameter name="S2"/>
|
|
</template><parameter name="a"><paramtype>const <classname>histogram</classname>< A1, S1 > &</paramtype></parameter><parameter name="b"><paramtype>const <classname>histogram</classname>< A2, S2 > &</paramtype></parameter><purpose>Pairwise add cells of two histograms and return histogram with the sum. </purpose><description><para>The returned histogram type is the most efficient and safest one constructible from the inputs, if they are not the same type. If one histogram has a tuple axis, the result has a tuple axis. The chosen storage is the one with the larger dynamic range. </para></description></function>
|
|
<function name="operator*"><type>auto</type><template>
|
|
<template-type-parameter name="A1"/>
|
|
<template-type-parameter name="S1"/>
|
|
<template-type-parameter name="A2"/>
|
|
<template-type-parameter name="S2"/>
|
|
</template><parameter name="a"><paramtype>const <classname>histogram</classname>< A1, S1 > &</paramtype></parameter><parameter name="b"><paramtype>const <classname>histogram</classname>< A2, S2 > &</paramtype></parameter><purpose>Pairwise multiply cells of two histograms and return histogram with the product. </purpose><description><para>For notes on the returned histogram type, see operator+. </para></description></function>
|
|
<function name="operator-"><type>auto</type><template>
|
|
<template-type-parameter name="A1"/>
|
|
<template-type-parameter name="S1"/>
|
|
<template-type-parameter name="A2"/>
|
|
<template-type-parameter name="S2"/>
|
|
</template><parameter name="a"><paramtype>const <classname>histogram</classname>< A1, S1 > &</paramtype></parameter><parameter name="b"><paramtype>const <classname>histogram</classname>< A2, S2 > &</paramtype></parameter><purpose>Pairwise subtract cells of two histograms and return histogram with the difference. </purpose><description><para>For notes on the returned histogram type, see operator+. </para></description></function>
|
|
<function name="operator/"><type>auto</type><template>
|
|
<template-type-parameter name="A1"/>
|
|
<template-type-parameter name="S1"/>
|
|
<template-type-parameter name="A2"/>
|
|
<template-type-parameter name="S2"/>
|
|
</template><parameter name="a"><paramtype>const <classname>histogram</classname>< A1, S1 > &</paramtype></parameter><parameter name="b"><paramtype>const <classname>histogram</classname>< A2, S2 > &</paramtype></parameter><purpose>Pairwise divide cells of two histograms and return histogram with the quotient. </purpose><description><para>For notes on the returned histogram type, see operator+. </para></description></function>
|
|
<function name="operator*"><type>auto</type><template>
|
|
<template-type-parameter name="A"/>
|
|
<template-type-parameter name="S"/>
|
|
</template><parameter name="h"><paramtype>const <classname>histogram</classname>< A, S > &</paramtype></parameter><parameter name="x"><paramtype>double</paramtype></parameter><purpose>Multiply all cells of the histogram by a number and return a new histogram. </purpose><description><para>If the original histogram has integer cells, the result has double cells. </para></description></function>
|
|
<function name="operator*"><type>auto</type><template>
|
|
<template-type-parameter name="A"/>
|
|
<template-type-parameter name="S"/>
|
|
</template><parameter name="x"><paramtype>double</paramtype></parameter><parameter name="h"><paramtype>const <classname>histogram</classname>< A, S > &</paramtype></parameter><purpose>Multiply all cells of the histogram by a number and return a new histogram. </purpose><description><para>If the original histogram has integer cells, the result has double cells. </para></description></function>
|
|
<function name="operator/"><type>auto</type><template>
|
|
<template-type-parameter name="A"/>
|
|
<template-type-parameter name="S"/>
|
|
</template><parameter name="h"><paramtype>const <classname>histogram</classname>< A, S > &</paramtype></parameter><parameter name="x"><paramtype>double</paramtype></parameter><purpose>Divide all cells of the histogram by a number and return a new histogram. </purpose><description><para>If the original histogram has integer cells, the result has double cells. </para></description></function>
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/accumulators.hpp">
|
|
<para>Includes all accumulator headers of the Boost.Histogram library. </para><para>Extra header not automatically included:<itemizedlist>
|
|
<listitem><para><ulink url="histogram/reference.html#header.boost.histogram.accumulators.ostream_hpp">boost/histogram/accumulators/ostream.hpp</ulink> </para>
|
|
</listitem></itemizedlist>
|
|
</para></header>
|
|
<header name="boost/histogram/accumulators/count.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="accumulators">
|
|
<class name="count"><template>
|
|
<template-type-parameter name="ValueType"/>
|
|
</template><purpose>Uses a C++ builtin arithmetic type to accumulate a count. </purpose><description><para>This wrapper class may be used as a base class by users who want to add custom metadata to each bin of a histogram. Otherwise, arithmetic types should be used directly as accumulators in storages for simplicity. In other words, prefer <computeroutput>dense_storage<double></computeroutput> over <computeroutput>dense_storage<count<double>></computeroutput>, both are functionally equivalent.</para><para>When weighted data is accumulated and high precision is required, use <computeroutput><classname alt="boost::histogram::accumulators::sum">accumulators::sum</classname></computeroutput> instead. If a local variance estimate for the weight distribution should be computed as well (generally needed for a detailed statistical analysis), use <computeroutput><classname alt="boost::histogram::accumulators::weighted_sum">accumulators::weighted_sum</classname></computeroutput>. </para></description><typedef name="value_type"><type>ValueType</type></typedef>
|
|
<typedef name="const_reference"><type>const value_type &</type></typedef>
|
|
<method-group name="public member functions">
|
|
<method name="operator++" cv="noexcept"><type><classname>count</classname> &</type><purpose>Increment count by one. </purpose></method>
|
|
<method name="operator+=" cv="noexcept"><type><classname>count</classname> &</type><parameter name="value"><paramtype>const_reference</paramtype></parameter><purpose>Increment count by value. </purpose></method>
|
|
<method name="operator+=" cv="noexcept"><type><classname>count</classname> &</type><parameter name="s"><paramtype>const <classname>count</classname> &</paramtype></parameter><purpose>Add another count. </purpose></method>
|
|
<method name="operator *=" cv="noexcept"><type><classname>count</classname> &</type><parameter name="value"><paramtype>const_reference</paramtype></parameter><purpose>Scale by value. </purpose></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>count</classname> &</paramtype></parameter></method>
|
|
<method name="operator!=" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>count</classname> &</paramtype></parameter></method>
|
|
<method name="value" cv="const noexcept"><type>const_reference</type><purpose>Return count. </purpose></method>
|
|
<method name="conversion-operator" cv="const noexcept" specifiers="explicit"><type>value_type</type></method>
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name="ar"><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
<method name="operator *=" cv="noexcept"><type><classname>count</classname> &</type><parameter name="rhs"><paramtype>const <classname>count</classname> &</paramtype></parameter></method>
|
|
<method name="operator *" cv="const noexcept"><type><classname>count</classname></type><parameter name="rhs"><paramtype>const <classname>count</classname> &</paramtype></parameter></method>
|
|
<method name="operator/=" cv="noexcept"><type><classname>count</classname> &</type><parameter name="rhs"><paramtype>const <classname>count</classname> &</paramtype></parameter></method>
|
|
<method name="operator/" cv="const noexcept"><type><classname>count</classname></type><parameter name="rhs"><paramtype>const <classname>count</classname> &</paramtype></parameter></method>
|
|
<method name="operator<" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>count</classname> &</paramtype></parameter></method>
|
|
<method name="operator>" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>count</classname> &</paramtype></parameter></method>
|
|
<method name="operator<=" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>count</classname> &</paramtype></parameter></method>
|
|
<method name="operator>=" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>count</classname> &</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor cv="= default"/>
|
|
<constructor cv="noexcept"><parameter name="value"><paramtype>const_reference</paramtype></parameter><purpose>Initialize count to value and allow implicit conversion. </purpose></constructor>
|
|
<constructor cv="noexcept"><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="c"><paramtype>const <classname>count</classname>< T > &</paramtype></parameter><purpose>Allow implicit conversion from other count. </purpose></constructor>
|
|
</class></namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/accumulators/mean.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="accumulators">
|
|
<class name="mean"><template>
|
|
<template-type-parameter name="ValueType"/>
|
|
</template><purpose>Calculates mean and variance of sample. </purpose><description><para>Uses Welfords's incremental algorithm to improve the numerical stability of mean and variance computation. </para></description><typedef name="value_type"><type>ValueType</type></typedef>
|
|
<typedef name="const_reference"><type>const value_type &</type></typedef>
|
|
<method-group name="public member functions">
|
|
<method name="operator()" cv="noexcept"><type>void</type><parameter name="x"><paramtype>const_reference</paramtype></parameter><purpose>Insert sample x. </purpose></method>
|
|
<method name="operator()" cv="noexcept"><type>void</type><parameter name="w"><paramtype>const <classname>weight_type</classname>< value_type > &</paramtype></parameter><parameter name="x"><paramtype>const_reference</paramtype></parameter><purpose>Insert sample x with weight w. </purpose></method>
|
|
<method name="operator+=" cv="noexcept"><type><classname>mean</classname> &</type><parameter name="rhs"><paramtype>const <classname>mean</classname> &</paramtype></parameter><purpose>Add another mean accumulator. </purpose></method>
|
|
<method name="operator *=" cv="noexcept"><type><classname>mean</classname> &</type><parameter name="s"><paramtype>const_reference</paramtype></parameter><purpose>Scale by value. </purpose><description><para>This acts as if all samples were scaled by the value. </para></description></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>mean</classname> &</paramtype></parameter></method>
|
|
<method name="operator!=" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>mean</classname> &</paramtype></parameter></method>
|
|
<method name="count" cv="const noexcept"><type>const_reference</type><purpose>Return how many samples were accumulated. </purpose></method>
|
|
<method name="value" cv="const noexcept"><type>const_reference</type><purpose>Return mean value of accumulated samples. </purpose><description><para>The result is undefined, if <computeroutput>count() < 1</computeroutput>. </para></description></method>
|
|
<method name="variance" cv="const noexcept"><type>value_type</type><purpose>Return variance of accumulated samples. </purpose><description><para>The result is undefined, if <computeroutput>count() < 2</computeroutput>. </para></description></method>
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name="ar"><paramtype>Archive &</paramtype></parameter><parameter name="version"><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor cv="= default"/>
|
|
<constructor cv="noexcept"><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="o"><paramtype>const <classname>mean</classname>< T > &</paramtype></parameter><purpose>Allow implicit conversion from mean<T>. </purpose></constructor>
|
|
<constructor cv="noexcept"><parameter name="n"><paramtype>const_reference</paramtype></parameter><parameter name="mean"><paramtype>const_reference</paramtype></parameter><parameter name="variance"><paramtype>const_reference</paramtype></parameter><purpose>Initialize to external count, mean, and variance. </purpose></constructor>
|
|
</class></namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/accumulators/sum.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="accumulators">
|
|
<class name="sum"><template>
|
|
<template-type-parameter name="ValueType"/>
|
|
</template><purpose>Uses Neumaier algorithm to compute accurate sums of floats. </purpose><description><para>The algorithm is an improved Kahan algorithm (<ulink url="https://en.wikipedia.org/wiki/Kahan_summation_algorithm">https://en.wikipedia.org/wiki/Kahan_summation_algorithm</ulink>). The algorithm uses memory for two numbers and is three to five times slower compared to using a single number to accumulate a sum, but the relative error of the sum is at the level of the machine precision, independent of the number of samples.</para><para>A. Neumaier, Zeitschrift fuer Angewandte Mathematik und Mechanik 54 (1974) 39-51. </para></description><typedef name="value_type"><type>ValueType</type></typedef>
|
|
<typedef name="const_reference"><type>const value_type &</type></typedef>
|
|
<method-group name="public member functions">
|
|
<method name="operator++" cv="noexcept"><type><classname>sum</classname> &</type><purpose>Increment sum by one. </purpose></method>
|
|
<method name="operator+=" cv="noexcept"><type><classname>sum</classname> &</type><parameter name="value"><paramtype>const_reference</paramtype></parameter><purpose>Increment sum by value. </purpose></method>
|
|
<method name="operator+=" cv="noexcept"><type><classname>sum</classname> &</type><parameter name="s"><paramtype>const <classname>sum</classname> &</paramtype></parameter><purpose>Add another sum. </purpose></method>
|
|
<method name="operator *=" cv="noexcept"><type><classname>sum</classname> &</type><parameter name="value"><paramtype>const_reference</paramtype></parameter><purpose>Scale by value. </purpose></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>sum</classname> &</paramtype></parameter></method>
|
|
<method name="operator!=" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>sum</classname> &</paramtype></parameter></method>
|
|
<method name="value" cv="const noexcept"><type>value_type</type><purpose>Return value of the sum. </purpose></method>
|
|
<method name="large" cv="const noexcept"><type>const_reference</type><purpose>Return large part of the sum. </purpose></method>
|
|
<method name="small" cv="const noexcept"><type>const_reference</type><purpose>Return small part of the sum. </purpose></method>
|
|
<method name="conversion-operator" cv="const noexcept" specifiers="explicit"><type>value_type</type></method>
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name="ar"><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
<method name="operator *=" cv="noexcept"><type><classname>sum</classname> &</type><parameter name="rhs"><paramtype>const <classname>sum</classname> &</paramtype></parameter></method>
|
|
<method name="operator *" cv="const noexcept"><type><classname>sum</classname></type><parameter name="rhs"><paramtype>const <classname>sum</classname> &</paramtype></parameter></method>
|
|
<method name="operator/=" cv="noexcept"><type><classname>sum</classname> &</type><parameter name="rhs"><paramtype>const <classname>sum</classname> &</paramtype></parameter></method>
|
|
<method name="operator/" cv="const noexcept"><type><classname>sum</classname></type><parameter name="rhs"><paramtype>const <classname>sum</classname> &</paramtype></parameter></method>
|
|
<method name="operator<" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>sum</classname> &</paramtype></parameter></method>
|
|
<method name="operator>" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>sum</classname> &</paramtype></parameter></method>
|
|
<method name="operator<=" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>sum</classname> &</paramtype></parameter></method>
|
|
<method name="operator>=" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>sum</classname> &</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor cv="= default"/>
|
|
<constructor cv="noexcept"><parameter name="value"><paramtype>const_reference</paramtype></parameter><purpose>Initialize sum to value and allow implicit conversion. </purpose></constructor>
|
|
<constructor cv="noexcept"><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="s"><paramtype>const <classname>sum</classname>< T > &</paramtype></parameter><purpose>Allow implicit conversion from sum<T> </purpose></constructor>
|
|
<constructor cv="noexcept"><parameter name="large"><paramtype>const_reference</paramtype></parameter><parameter name="small"><paramtype>const_reference</paramtype></parameter><purpose>Initialize sum explicitly with large and small parts. </purpose></constructor>
|
|
</class></namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/algorithm/sum.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="algorithm">
|
|
<function name="sum"><type>auto</type><template>
|
|
<template-type-parameter name="A"/>
|
|
<template-type-parameter name="S"/>
|
|
</template><parameter name="hist"><paramtype>const <classname>histogram</classname>< A, S > &</paramtype><description><para>Const reference to the histogram. </para></description></parameter><parameter name="cov"><paramtype>const coverage</paramtype><default>coverage::all</default><description><para>Iterate over all or only inner bins (optional, default: all). </para></description></parameter><purpose>Compute the sum over all histogram cells (underflow/overflow included by default). </purpose><description><para>The implementation favors accuracy and protection against overflow over speed. If the value type of the histogram is an integral or floating point type, accumulators::sum<double> is used to compute the sum, else the original value type is used. Compilation fails, if the value type does not support operator+=. The return type is double if the value type of the histogram is integral or floating point, and the original value type otherwise.</para><para>If you need a different trade-off, you can write your own loop or use <computeroutput>std::accumulate</computeroutput>: <programlisting language="c++">// iterate over all bins
|
|
auto sum_all = std::accumulate(hist.begin(), hist.end(), 0.0);
|
|
|
|
// skip underflow/overflow bins
|
|
double sum = 0;
|
|
for (auto&& x : indexed(hist))
|
|
sum += *x; // dereference accessor
|
|
|
|
// or:
|
|
// auto ind = boost::histogram::indexed(hist);
|
|
// auto sum = std::accumulate(ind.begin(), ind.end(), 0.0);
|
|
</programlisting></para><para>
|
|
|
|
</para></description><returns><para>accumulator type or double</para>
|
|
</returns></function>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/accumulators/thread_safe.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="accumulators">
|
|
<class name="thread_safe"><template>
|
|
<template-type-parameter name="T"><purpose><para>type to adapt, must be supported by std::atomic. </para></purpose></template-type-parameter>
|
|
</template><inherit access="public">std::atomic< T ></inherit><purpose>Thread-safe adaptor for builtin integral and floating point numbers. </purpose><description><para>This adaptor uses std::atomic to make concurrent increments and additions safe for the stored value.</para><para>On common computing platforms, the adapted integer has the same size and alignment as underlying type. The atomicity is implemented with a special CPU instruction. On exotic platforms the size of the adapted number may be larger and/or the type may have different alignment, which means it cannot be tightly packed into arrays.</para><para>
|
|
</para></description><typedef name="value_type"><type>T</type></typedef>
|
|
<typedef name="super_t"><type>std::atomic< T ></type></typedef>
|
|
<method-group name="public member functions">
|
|
<method name="operator+="><type><classname>thread_safe</classname> &</type><parameter name="arg"><paramtype>const <classname>thread_safe</classname> &</paramtype></parameter></method>
|
|
<method name="operator+="><type><classname>thread_safe</classname> &</type><parameter name="arg"><paramtype>value_type</paramtype></parameter></method>
|
|
<method name="operator++"><type><classname>thread_safe</classname> &</type></method>
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name="ar"><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor cv="noexcept"/>
|
|
<constructor cv="noexcept"><parameter name="o"><paramtype>const <classname>thread_safe</classname> &</paramtype></parameter></constructor>
|
|
<copy-assignment cv="noexcept"><type><classname>thread_safe</classname> &</type><parameter name="o"><paramtype>const <classname>thread_safe</classname> &</paramtype></parameter></copy-assignment>
|
|
<constructor><parameter name="arg"><paramtype>value_type</paramtype></parameter></constructor>
|
|
<copy-assignment><type><classname>thread_safe</classname> &</type><parameter name="arg"><paramtype>value_type</paramtype></parameter></copy-assignment>
|
|
</class></namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/accumulators/weighted_mean.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="accumulators">
|
|
<class name="weighted_mean"><template>
|
|
<template-type-parameter name="ValueType"/>
|
|
</template><purpose>Calculates mean and variance of weighted sample. </purpose><description><para>Uses West's incremental algorithm to improve numerical stability of mean and variance computation. </para></description><typedef name="value_type"><type>ValueType</type></typedef>
|
|
<typedef name="const_reference"><type>const value_type &</type></typedef>
|
|
<method-group name="public member functions">
|
|
<method name="operator()"><type>void</type><parameter name="x"><paramtype>const_reference</paramtype></parameter><purpose>Insert sample x. </purpose></method>
|
|
<method name="operator()"><type>void</type><parameter name="w"><paramtype>const <classname>weight_type</classname>< value_type > &</paramtype></parameter><parameter name="x"><paramtype>const_reference</paramtype></parameter><purpose>Insert sample x with weight w. </purpose></method>
|
|
<method name="operator+="><type><classname>weighted_mean</classname> &</type><parameter name="rhs"><paramtype>const <classname>weighted_mean</classname> &</paramtype></parameter><purpose>Add another <classname alt="boost::histogram::accumulators::weighted_mean">weighted_mean</classname>. </purpose></method>
|
|
<method name="operator *=" cv="noexcept"><type><classname>weighted_mean</classname> &</type><parameter name="s"><paramtype>const_reference</paramtype></parameter><purpose>Scale by value. </purpose><description><para>This acts as if all samples were scaled by the value. </para></description></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>weighted_mean</classname> &</paramtype></parameter></method>
|
|
<method name="operator!=" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>weighted_mean</classname> &</paramtype></parameter></method>
|
|
<method name="sum_of_weights" cv="const noexcept"><type>const_reference</type><purpose>Return sum of weights. </purpose></method>
|
|
<method name="sum_of_weights_squared" cv="const noexcept"><type>const_reference</type><purpose>Return sum of weights squared (variance of weight distribution). </purpose></method>
|
|
<method name="value" cv="const noexcept"><type>const_reference</type><purpose>Return mean value of accumulated weighted samples. </purpose><description><para>The result is undefined, if <computeroutput>sum_of_weights() == 0</computeroutput>. </para></description></method>
|
|
<method name="variance" cv="const"><type>value_type</type><purpose>Return variance of accumulated weighted samples. </purpose><description><para>The result is undefined, if <computeroutput>sum_of_weights() == 0</computeroutput> or <computeroutput>sum_of_weights() == sum_of_weights_squared()</computeroutput>. </para></description></method>
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name="ar"><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor cv="= default"/>
|
|
<constructor><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="o"><paramtype>const <classname>weighted_mean</classname>< T > &</paramtype></parameter><purpose>Allow implicit conversion from other weighted_means. </purpose></constructor>
|
|
<constructor><parameter name="wsum"><paramtype>const_reference</paramtype></parameter><parameter name="wsum2"><paramtype>const_reference</paramtype></parameter><parameter name="mean"><paramtype>const_reference</paramtype></parameter><parameter name="variance"><paramtype>const_reference</paramtype></parameter><purpose>Initialize to external sum of weights, sum of weights squared, mean, and variance. </purpose></constructor>
|
|
</class></namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/accumulators/weighted_sum.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="accumulators">
|
|
<class name="weighted_sum"><template>
|
|
<template-type-parameter name="ValueType"/>
|
|
</template><purpose>Holds sum of weights and its variance estimate. </purpose><typedef name="value_type"><type>ValueType</type></typedef>
|
|
<typedef name="const_reference"><type>const value_type &</type></typedef>
|
|
<method-group name="public member functions">
|
|
<method name="operator++"><type><classname>weighted_sum</classname> &</type><purpose>Increment by one. </purpose></method>
|
|
<method name="operator+="><type><classname>weighted_sum</classname> &</type><parameter name="w"><paramtype>const <classname>weight_type</classname>< value_type > &</paramtype></parameter><purpose>Increment by weight. </purpose></method>
|
|
<method name="operator+="><type><classname>weighted_sum</classname> &</type><parameter name="rhs"><paramtype>const <classname>weighted_sum</classname> &</paramtype></parameter><purpose>Added another weighted sum. </purpose></method>
|
|
<method name="operator *="><type><classname>weighted_sum</classname> &</type><parameter name="x"><paramtype>const_reference</paramtype></parameter><purpose>Scale by value. </purpose></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>weighted_sum</classname> &</paramtype></parameter></method>
|
|
<method name="operator!=" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>weighted_sum</classname> &</paramtype></parameter></method>
|
|
<method name="value" cv="const noexcept"><type>const_reference</type><purpose>Return value of the sum. </purpose></method>
|
|
<method name="variance" cv="const noexcept"><type>const_reference</type><purpose>Return estimated variance of the sum. </purpose></method>
|
|
<method name="conversion-operator" cv="const" specifiers="explicit"><type>const_reference</type></method>
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name="ar"><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor cv="= default"/>
|
|
<constructor cv="noexcept"><parameter name="value"><paramtype>const_reference</paramtype></parameter><purpose>Initialize sum to value and allow implicit conversion. </purpose></constructor>
|
|
<constructor cv="noexcept"><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="s"><paramtype>const <classname>weighted_sum</classname>< T > &</paramtype></parameter><purpose>Allow implicit conversion from sum<T> </purpose></constructor>
|
|
<constructor cv="noexcept"><parameter name="value"><paramtype>const_reference</paramtype></parameter><parameter name="variance"><paramtype>const_reference</paramtype></parameter><purpose>Initialize sum to value and variance. </purpose></constructor>
|
|
</class></namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/algorithm.hpp">
|
|
<para>Includes all algorithm headers of the Boost.Histogram library. </para></header>
|
|
<header name="boost/histogram/algorithm/empty.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="algorithm">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<function name="empty"><type>auto</type><template>
|
|
<template-type-parameter name="A"/>
|
|
<template-type-parameter name="S"/>
|
|
</template><parameter name="h"><paramtype>const <classname>histogram</classname>< A, S > &</paramtype></parameter><parameter name="cov"><paramtype>coverage</paramtype></parameter><purpose>Check to see if all histogram cells are empty. </purpose><description><para>Use coverage to include or exclude the underflow/overflow bins.</para><para>This algorithm has O(N) complexity, where N is the number of cells.</para><para>Returns true if all cells are empty, and false otherwise. </para></description></function>
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/algorithm/project.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="algorithm">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<function name="project"><type>auto</type><template>
|
|
<template-type-parameter name="A"/>
|
|
<template-type-parameter name="S"/>
|
|
<template-nontype-parameter name="N"><type>unsigned</type></template-nontype-parameter>
|
|
<template-nontype-parameter name="Ns"><type>typename...</type></template-nontype-parameter>
|
|
</template><parameter name="h"><paramtype>const <classname>histogram</classname>< A, S > &</paramtype></parameter><parameter name=""><paramtype>std::integral_constant< unsigned, N ></paramtype></parameter><parameter name=""><paramtype>Ns...</paramtype></parameter><purpose>Returns a lower-dimensional histogram, summing over removed axes. </purpose><description><para>Arguments are the source histogram and compile-time numbers, the remaining indices of the axes. Returns a new histogram which only contains the subset of axes. The source histogram is summed over the removed axes. </para></description></function>
|
|
<function name="project"><type>auto</type><template>
|
|
<template-type-parameter name="A"/>
|
|
<template-type-parameter name="S"/>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterable<Iterable></default></template-type-parameter>
|
|
</template><parameter name="h"><paramtype>const <classname>histogram</classname>< A, S > &</paramtype></parameter><parameter name="c"><paramtype>const Iterable &</paramtype></parameter><purpose>Returns a lower-dimensional histogram, summing over removed axes. </purpose><description><para>This version accepts a source histogram and an iterable range containing the remaining indices. </para></description></function>
|
|
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/algorithm/reduce.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="algorithm">
|
|
<enum name="slice_mode"><enumvalue name="shrink"/><enumvalue name="crop"/><purpose>Whether to behave like <computeroutput>shrink</computeroutput> or <computeroutput>crop</computeroutput> regarding removed bins. </purpose></enum>
|
|
<typedef name="reduce_command"><purpose>Holder for a reduce command. </purpose><description><para>Use this type to store reduce commands in a container. The internals of this type are an implementation detail. </para></description><type><emphasis>unspecified</emphasis></type></typedef>
|
|
<typedef name="reduce_option"><purpose>deprecated </purpose><type>reduce_command</type></typedef>
|
|
|
|
<function name="shrink"><type>reduce_command</type><parameter name="iaxis"><paramtype>unsigned</paramtype><description><para>which axis to operate on. </para></description></parameter><parameter name="lower"><paramtype>double</paramtype><description><para>bin which contains lower is first to be kept. </para></description></parameter><parameter name="upper"><paramtype>double</paramtype><description><para>bin which contains upper is last to be kept, except if upper is equal to the lower edge. </para></description></parameter><purpose>Shrink command to be used in <computeroutput>reduce</computeroutput>. </purpose><description><para>Command is applied to axis with given index.</para><para>Shrinking is based on an inclusive value interval. The bin which contains the first value starts the range of bins to keep. The bin which contains the second value is the last included in that range. When the second value is exactly equal to a lower bin edge, then the previous bin is the last in the range.</para><para>The counts in removed bins are added to the corresponding underflow and overflow bins, if they are present. If they are not present, the counts are discarded. Also see <computeroutput>crop</computeroutput>, which always discards the counts.</para><para>
|
|
</para></description></function>
|
|
<function name="shrink"><type>reduce_command</type><parameter name="lower"><paramtype>double</paramtype><description><para>bin which contains lower is first to be kept. </para></description></parameter><parameter name="upper"><paramtype>double</paramtype><description><para>bin which contains upper is last to be kept, except if upper is equal to the lower edge. </para></description></parameter><purpose>Shrink command to be used in <computeroutput>reduce</computeroutput>. </purpose><description><para>Command is applied to corresponding axis in order of reduce arguments.</para><para>Shrinking is based on an inclusive value interval. The bin which contains the first value starts the range of bins to keep. The bin which contains the second value is the last included in that range. When the second value is exactly equal to a lower bin edge, then the previous bin is the last in the range.</para><para>The counts in removed bins are added to the corresponding underflow and overflow bins, if they are present. If they are not present, the counts are discarded. Also see <computeroutput>crop</computeroutput>, which always discards the counts.</para><para>
|
|
</para></description></function>
|
|
<function name="crop"><type>reduce_command</type><parameter name="iaxis"><paramtype>unsigned</paramtype><description><para>which axis to operate on. </para></description></parameter><parameter name="lower"><paramtype>double</paramtype><description><para>bin which contains lower is first to be kept. </para></description></parameter><parameter name="upper"><paramtype>double</paramtype><description><para>bin which contains upper is last to be kept, except if upper is equal to the lower edge. </para></description></parameter><purpose>Crop command to be used in <computeroutput>reduce</computeroutput>. </purpose><description><para>Command is applied to axis with given index.</para><para>Works like <computeroutput>shrink</computeroutput> (see shrink documentation for details), but counts in removed bins are always discarded, whether underflow and overflow bins are present or not.</para><para>
|
|
</para></description></function>
|
|
<function name="crop"><type>reduce_command</type><parameter name="lower"><paramtype>double</paramtype><description><para>bin which contains lower is first to be kept. </para></description></parameter><parameter name="upper"><paramtype>double</paramtype><description><para>bin which contains upper is last to be kept, except if upper is equal to the lower edge. </para></description></parameter><purpose>Crop command to be used in <computeroutput>reduce</computeroutput>. </purpose><description><para>Command is applied to corresponding axis in order of reduce arguments.</para><para>Works like <computeroutput>shrink</computeroutput> (see shrink documentation for details), but counts in removed bins are discarded, whether underflow and overflow bins are present or not. If the cropped range goes beyond the axis range, then the content of the underflow or overflow bin which overlaps with the range is kept.</para><para>If the counts in an existing underflow or overflow bin are discared by the crop, the corresponding memory cells are not physically removed. Only their contents are set to zero. This technical limitation may be lifted in the future, then crop may completely remove the cropped memory cells.</para><para>
|
|
</para></description></function>
|
|
<function name="slice"><type>reduce_command</type><parameter name="iaxis"><paramtype>unsigned</paramtype><description><para>which axis to operate on. </para></description></parameter><parameter name="begin"><paramtype>axis::index_type</paramtype><description><para>first index that should be kept. </para></description></parameter><parameter name="end"><paramtype>axis::index_type</paramtype><description><para>one past the last index that should be kept. </para></description></parameter><parameter name="mode"><paramtype>slice_mode</paramtype><default>slice_mode::shrink</default><description><para>whether to behave like <computeroutput>shrink</computeroutput> or <computeroutput>crop</computeroutput> regarding removed bins. </para></description></parameter><purpose>Slice command to be used in <computeroutput>reduce</computeroutput>. </purpose><description><para>Command is applied to axis with given index.</para><para>Slicing works like <computeroutput>shrink</computeroutput> or <computeroutput>crop</computeroutput>, but uses bin indices instead of values.</para><para>
|
|
</para></description></function>
|
|
<function name="slice"><type>reduce_command</type><parameter name="begin"><paramtype>axis::index_type</paramtype><description><para>first index that should be kept. </para></description></parameter><parameter name="end"><paramtype>axis::index_type</paramtype><description><para>one past the last index that should be kept. </para></description></parameter><parameter name="mode"><paramtype>slice_mode</paramtype><default>slice_mode::shrink</default><description><para>whether to behave like <computeroutput>shrink</computeroutput> or <computeroutput>crop</computeroutput> regarding removed bins. </para></description></parameter><purpose>Slice command to be used in <computeroutput>reduce</computeroutput>. </purpose><description><para>Command is applied to corresponding axis in order of reduce arguments.</para><para>Slicing works like <computeroutput>shrink</computeroutput> or <computeroutput>crop</computeroutput>, but uses bin indices instead of values.</para><para>
|
|
</para></description></function>
|
|
<function name="rebin"><type>reduce_command</type><parameter name="iaxis"><paramtype>unsigned</paramtype><description><para>which axis to operate on. </para></description></parameter><parameter name="merge"><paramtype>unsigned</paramtype><description><para>how many adjacent bins to merge into one. </para></description></parameter><purpose>Rebin command to be used in <computeroutput>reduce</computeroutput>. </purpose><description><para>Command is applied to axis with given index.</para><para>The command merges N adjacent bins into one. This makes the axis coarser and the bins wider. The original number of bins is divided by N. If there is a rest to this devision, the axis is implicitly shrunk at the upper end by that rest.</para><para>
|
|
</para></description></function>
|
|
<function name="rebin"><type>reduce_command</type><parameter name="merge"><paramtype>unsigned</paramtype><description><para>how many adjacent bins to merge into one. </para></description></parameter><purpose>Rebin command to be used in <computeroutput>reduce</computeroutput>. </purpose><description><para>Command is applied to corresponding axis in order of reduce arguments.</para><para>The command merges N adjacent bins into one. This makes the axis coarser and the bins wider. The original number of bins is divided by N. If there is a rest to this devision, the axis is implicitly shrunk at the upper end by that rest.</para><para>
|
|
</para></description></function>
|
|
<function name="shrink_and_rebin"><type>reduce_command</type><parameter name="iaxis"><paramtype>unsigned</paramtype><description><para>which axis to operate on. </para></description></parameter><parameter name="lower"><paramtype>double</paramtype><description><para>lowest bound that should be kept. </para></description></parameter><parameter name="upper"><paramtype>double</paramtype><description><para>highest bound that should be kept. If upper is inside bin interval, the whole interval is removed. </para></description></parameter><parameter name="merge"><paramtype>unsigned</paramtype><description><para>how many adjacent bins to merge into one. </para></description></parameter><purpose>Shrink and rebin command to be used in <computeroutput>reduce</computeroutput>. </purpose><description><para>Command is applied to corresponding axis in order of reduce arguments.</para><para>To shrink(unsigned, double, double) and rebin(unsigned, unsigned) in one command (see the respective commands for more details). Equivalent to passing both commands for the same axis to <computeroutput>reduce</computeroutput>.</para><para>
|
|
</para></description></function>
|
|
<function name="shrink_and_rebin"><type>reduce_command</type><parameter name="lower"><paramtype>double</paramtype><description><para>lowest bound that should be kept. </para></description></parameter><parameter name="upper"><paramtype>double</paramtype><description><para>highest bound that should be kept. If upper is inside bin interval, the whole interval is removed. </para></description></parameter><parameter name="merge"><paramtype>unsigned</paramtype><description><para>how many adjacent bins to merge into one. </para></description></parameter><purpose>Shrink and rebin command to be used in <computeroutput>reduce</computeroutput>. </purpose><description><para>Command is applied to corresponding axis in order of reduce arguments.</para><para>To <computeroutput>shrink</computeroutput> and <computeroutput>rebin</computeroutput> in one command (see the respective commands for more details). Equivalent to passing both commands for the same axis to <computeroutput>reduce</computeroutput>.</para><para>
|
|
</para></description></function>
|
|
<function name="crop_and_rebin"><type>reduce_command</type><parameter name="iaxis"><paramtype>unsigned</paramtype><description><para>which axis to operate on. </para></description></parameter><parameter name="lower"><paramtype>double</paramtype><description><para>lowest bound that should be kept. </para></description></parameter><parameter name="upper"><paramtype>double</paramtype><description><para>highest bound that should be kept. If upper is inside bin interval, the whole interval is removed. </para></description></parameter><parameter name="merge"><paramtype>unsigned</paramtype><description><para>how many adjacent bins to merge into one. </para></description></parameter><purpose>Crop and rebin command to be used in <computeroutput>reduce</computeroutput>. </purpose><description><para>Command is applied to axis with given index.</para><para>To <computeroutput>crop</computeroutput> and <computeroutput>rebin</computeroutput> in one command (see the respective commands for more details). Equivalent to passing both commands for the same axis to <computeroutput>reduce</computeroutput>.</para><para>
|
|
</para></description></function>
|
|
<function name="crop_and_rebin"><type>reduce_command</type><parameter name="lower"><paramtype>double</paramtype><description><para>lowest bound that should be kept. </para></description></parameter><parameter name="upper"><paramtype>double</paramtype><description><para>highest bound that should be kept. If upper is inside bin interval, the whole interval is removed. </para></description></parameter><parameter name="merge"><paramtype>unsigned</paramtype><description><para>how many adjacent bins to merge into one. </para></description></parameter><purpose>Crop and rebin command to be used in <computeroutput>reduce</computeroutput>. </purpose><description><para>Command is applied to corresponding axis in order of reduce arguments.</para><para>To <computeroutput>crop</computeroutput> and <computeroutput>rebin</computeroutput> in one command (see the respective commands for more details). Equivalent to passing both commands for the same axis to <computeroutput>reduce</computeroutput>.</para><para>
|
|
</para></description></function>
|
|
<function name="slice_and_rebin"><type>reduce_command</type><parameter name="iaxis"><paramtype>unsigned</paramtype><description><para>which axis to operate on. </para></description></parameter><parameter name="begin"><paramtype>axis::index_type</paramtype><description><para>first index that should be kept. </para></description></parameter><parameter name="end"><paramtype>axis::index_type</paramtype><description><para>one past the last index that should be kept. </para></description></parameter><parameter name="merge"><paramtype>unsigned</paramtype><description><para>how many adjacent bins to merge into one. </para></description></parameter><parameter name="mode"><paramtype>slice_mode</paramtype><default>slice_mode::shrink</default><description><para>slice mode, see slice_mode. </para></description></parameter><purpose>Slice and rebin command to be used in <computeroutput>reduce</computeroutput>. </purpose><description><para>Command is applied to axis with given index.</para><para>To <computeroutput>slice</computeroutput> and <computeroutput>rebin</computeroutput> in one command (see the respective commands for more details). Equivalent to passing both commands for the same axis to <computeroutput>reduce</computeroutput>.</para><para>
|
|
</para></description></function>
|
|
<function name="slice_and_rebin"><type>reduce_command</type><parameter name="begin"><paramtype>axis::index_type</paramtype><description><para>first index that should be kept. </para></description></parameter><parameter name="end"><paramtype>axis::index_type</paramtype><description><para>one past the last index that should be kept. </para></description></parameter><parameter name="merge"><paramtype>unsigned</paramtype><description><para>how many adjacent bins to merge into one. </para></description></parameter><parameter name="mode"><paramtype>slice_mode</paramtype><default>slice_mode::shrink</default><description><para>slice mode, see slice_mode. </para></description></parameter><purpose>Slice and rebin command to be used in <computeroutput>reduce</computeroutput>. </purpose><description><para>Command is applied to corresponding axis in order of reduce arguments.</para><para>To <computeroutput>slice</computeroutput> and <computeroutput>rebin</computeroutput> in one command (see the respective commands for more details). Equivalent to passing both commands for the same axis to <computeroutput>reduce</computeroutput>.</para><para>
|
|
</para></description></function>
|
|
<function name="reduce"><type>Histogram</type><template>
|
|
<template-type-parameter name="Histogram"/>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterable<Iterable></default></template-type-parameter>
|
|
</template><parameter name="hist"><paramtype>const Histogram &</paramtype><description><para>original histogram. </para></description></parameter><parameter name="options"><paramtype>const Iterable &</paramtype><description><para>iterable sequence of reduce commands: <computeroutput>shrink</computeroutput>, <computeroutput>slice</computeroutput>, <computeroutput>rebin</computeroutput>, <computeroutput>shrink_and_rebin</computeroutput>, or <computeroutput>slice_and_rebin</computeroutput>. The element type of the iterable should be <computeroutput>reduce_command</computeroutput>. </para></description></parameter><purpose>Shrink, crop, slice, and/or rebin axes of a histogram. </purpose><description><para>Returns a new reduced histogram and leaves the original histogram untouched.</para><para>The commands <computeroutput>rebin</computeroutput> and <computeroutput>shrink</computeroutput> or <computeroutput>slice</computeroutput> for the same axis are automatically combined, this is not an error. Passing a <computeroutput>shrink</computeroutput> and a <computeroutput>slice</computeroutput> command for the same axis or two <computeroutput>rebin</computeroutput> commands triggers an <computeroutput>invalid_argument</computeroutput> exception. Trying to reducing a non-reducible axis triggers an <computeroutput>invalid_argument</computeroutput> exception. Histograms with non-reducible axes can still be reduced along the other axes that are reducible.</para><para>An overload allows one to pass reduce_command as positional arguments.</para><para>
|
|
</para></description></function>
|
|
<function name="reduce"><type>Histogram</type><template>
|
|
<template-type-parameter name="Histogram"/>
|
|
<template-nontype-parameter name="Ts"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="hist"><paramtype>const Histogram &</paramtype><description><para>original histogram. </para></description></parameter><parameter name="opt"><paramtype>const reduce_command &</paramtype><description><para>first reduce command; one of <computeroutput>shrink</computeroutput>, <computeroutput>slice</computeroutput>, <computeroutput>rebin</computeroutput>, <computeroutput>shrink_and_rebin</computeroutput>, or <computeroutput>slice_or_rebin</computeroutput>. </para></description></parameter><parameter name="opts"><paramtype>const Ts &...</paramtype><description><para>more reduce commands. </para></description></parameter><purpose>Shrink, slice, and/or rebin axes of a histogram. </purpose><description><para>Returns a new reduced histogram and leaves the original histogram untouched.</para><para>The commands <computeroutput>rebin</computeroutput> and <computeroutput>shrink</computeroutput> or <computeroutput>slice</computeroutput> for the same axis are automatically combined, this is not an error. Passing a <computeroutput>shrink</computeroutput> and a <computeroutput>slice</computeroutput> command for the same axis or two <computeroutput>rebin</computeroutput> commands triggers an invalid_argument exception. It is safe to reduce histograms with some axis that are not reducible along the other axes. Trying to reducing a non-reducible axis triggers an invalid_argument exception.</para><para>An overload allows one to pass an iterable of reduce_command.</para><para>
|
|
</para></description></function>
|
|
|
|
|
|
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/axis.hpp">
|
|
<para>Includes all axis headers of the Boost.Histogram library. </para><para>Extra header not automatically included:<itemizedlist>
|
|
<listitem><para><ulink url="histogram/reference.html#header.boost.histogram.axis.ostream_hpp">boost/histogram/axis/ostream.hpp</ulink> </para>
|
|
</listitem></itemizedlist>
|
|
</para></header>
|
|
<header name="boost/histogram/axis/boolean.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="axis">
|
|
<class name="boolean"><template>
|
|
<template-type-parameter name="MetaData"><purpose><para>type to store meta data. </para></purpose></template-type-parameter>
|
|
</template><inherit access="public">boost::histogram::axis::iterator_mixin< boolean< MetaData > ></inherit><inherit access="public">metadata_base_t< MetaData ></inherit><purpose>Discrete axis for boolean data. </purpose><description><para>Binning is a pass-though operation with zero cost, making this the fastest possible axis. The axis has no internal state apart from the optional metadata state. The axis has no under- and overflow bins. It cannot grow and cannot be reduced.</para><para>
|
|
</para></description><method-group name="public member functions">
|
|
<method name="index" cv="const noexcept"><type>index_type</type><parameter name="x"><paramtype>value_type</paramtype></parameter><purpose>Return index for value argument. </purpose></method>
|
|
<method name="value" cv="const noexcept"><type>value_type</type><parameter name="i"><paramtype>index_type</paramtype></parameter><purpose>Return value for index argument. </purpose></method>
|
|
<method name="bin" cv="const noexcept"><type>value_type</type><parameter name="i"><paramtype>index_type</paramtype></parameter><purpose>Return bin for index argument. </purpose></method>
|
|
<method name="size" cv="const noexcept"><type>index_type</type><purpose>Returns the number of bins, without over- or underflow. </purpose></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="M"/>
|
|
</template><parameter name="o"><paramtype>const <classname>boolean</classname>< M > &</paramtype></parameter></method>
|
|
<method name="operator!=" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="M"/>
|
|
</template><parameter name="o"><paramtype>const <classname>boolean</classname>< M > &</paramtype></parameter></method>
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name="ar"><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor specifiers="explicit"><parameter name="meta"><paramtype>metadata_type</paramtype><default>{}</default><description><para>description of the axis. </para></description></parameter><purpose>Construct a boolean axis. </purpose><description><para>
|
|
</para></description></constructor>
|
|
<method-group name="public static functions">
|
|
<method name="inclusive" cv="noexcept" specifiers="static"><type>constexpr bool</type><purpose>Whether the axis is inclusive (see <classname alt="boost::histogram::axis::traits::is_inclusive">axis::traits::is_inclusive</classname>). </purpose></method>
|
|
<method name="options" cv="noexcept" specifiers="static"><type>constexpr unsigned</type><purpose>Returns the options. </purpose></method>
|
|
</method-group>
|
|
</class>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/axis/category.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="axis">
|
|
<class name="category"><template>
|
|
<template-type-parameter name="Value"><purpose><para>input value type, must be equal-comparable. </para></purpose></template-type-parameter>
|
|
<template-type-parameter name="MetaData"><purpose><para>type to store meta data. </para></purpose></template-type-parameter>
|
|
<template-type-parameter name="Options"><purpose><para>see boost::histogram::axis::option. </para></purpose></template-type-parameter>
|
|
<template-type-parameter name="Allocator"><purpose><para>allocator to use for dynamic memory management.</para></purpose></template-type-parameter>
|
|
</template><inherit access="public">boost::histogram::axis::iterator_mixin< category< Value, MetaData, Options, Allocator > ></inherit><inherit access="public">metadata_base_t< MetaData ></inherit><purpose>Maps at a set of unique values to bin indices. </purpose><description><para>The axis maps a set of values to bins, following the order of arguments in the constructor. The optional overflow bin for this axis counts input values that are not part of the set. Binning has O(N) complexity, but with a very small factor. For small N (the typical use case) it beats other kinds of lookup.</para><para>
|
|
The options <computeroutput>underflow</computeroutput> and <computeroutput>circular</computeroutput> are not allowed. The options <computeroutput>growth</computeroutput> and <computeroutput>overflow</computeroutput> are mutually exclusive. </para></description><method-group name="public member functions">
|
|
<method name="index" cv="const noexcept"><type>index_type</type><parameter name="x"><paramtype>const value_type &</paramtype></parameter><purpose>Return index for value argument. </purpose></method>
|
|
<method name="update"><type>std::pair< index_type, index_type ></type><parameter name="x"><paramtype>const value_type &</paramtype></parameter><purpose>Returns index and shift (if axis has grown) for the passed argument. </purpose></method>
|
|
<method name="value" cv="const"><type>auto</type><parameter name="idx"><paramtype>index_type</paramtype></parameter><purpose>Return value for index argument. </purpose><description><para>Throws <computeroutput>std::out_of_range</computeroutput> if the index is out of bounds. </para></description></method>
|
|
<method name="bin" cv="const"><type>decltype(auto)</type><parameter name="idx"><paramtype>index_type</paramtype></parameter><purpose>Return value for index argument; alias for value(...). </purpose></method>
|
|
<method name="size" cv="const noexcept"><type>index_type</type><purpose>Returns the number of bins, without over- or underflow. </purpose></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="V"/>
|
|
<template-type-parameter name="M"/>
|
|
<template-type-parameter name="O"/>
|
|
<template-type-parameter name="A"/>
|
|
</template><parameter name="o"><paramtype>const <classname>category</classname>< V, M, O, A > &</paramtype></parameter></method>
|
|
<method name="operator!=" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="V"/>
|
|
<template-type-parameter name="M"/>
|
|
<template-type-parameter name="O"/>
|
|
<template-type-parameter name="A"/>
|
|
</template><parameter name="o"><paramtype>const <classname>category</classname>< V, M, O, A > &</paramtype></parameter></method>
|
|
<method name="get_allocator" cv="const"><type>allocator_type</type></method>
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name="ar"><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor cv="= default"/>
|
|
<constructor specifiers="explicit"><parameter name="alloc"><paramtype>allocator_type</paramtype></parameter></constructor>
|
|
<constructor><template>
|
|
<template-type-parameter name="It"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterator<It></default></template-type-parameter>
|
|
</template><parameter name="begin"><paramtype>It</paramtype><description><para>begin of category range of unique values. </para></description></parameter><parameter name="end"><paramtype>It</paramtype><description><para>end of category range of unique values. </para></description></parameter><parameter name="meta"><paramtype>metadata_type</paramtype><default>{}</default><description><para>description of the axis. </para></description></parameter><parameter name="alloc"><paramtype>allocator_type</paramtype><default>{}</default><description><para>allocator instance to use. </para></description></parameter><purpose>Construct from iterator range of unique values. </purpose><description><para>
|
|
</para></description></constructor>
|
|
<constructor><template>
|
|
<template-type-parameter name="C"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterable<C></default></template-type-parameter>
|
|
</template><parameter name="iterable"><paramtype>const C &</paramtype><description><para>sequence of unique values. </para></description></parameter><parameter name="meta"><paramtype>metadata_type</paramtype><default>{}</default><description><para>description of the axis. </para></description></parameter><parameter name="alloc"><paramtype>allocator_type</paramtype><default>{}</default><description><para>allocator instance to use. </para></description></parameter><purpose>Construct axis from iterable sequence of unique values. </purpose><description><para>
|
|
</para></description></constructor>
|
|
<constructor><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="list"><paramtype>std::initializer_list< U ></paramtype><description><para><computeroutput>std::initializer_list</computeroutput> of unique values. </para></description></parameter><parameter name="meta"><paramtype>metadata_type</paramtype><default>{}</default><description><para>description of the axis. </para></description></parameter><parameter name="alloc"><paramtype>allocator_type</paramtype><default>{}</default><description><para>allocator instance to use. </para></description></parameter><purpose>Construct axis from an initializer list of unique values. </purpose><description><para>
|
|
</para></description></constructor>
|
|
<constructor><parameter name="src"><paramtype>const <classname>category</classname> &</paramtype></parameter><parameter name="begin"><paramtype>index_type</paramtype></parameter><parameter name="end"><paramtype>index_type</paramtype></parameter><parameter name="merge"><paramtype>unsigned</paramtype></parameter><purpose>Constructor used by algorithm::reduce to shrink and rebin (not for users). </purpose></constructor>
|
|
<method-group name="public static functions">
|
|
<method name="options" cv="noexcept" specifiers="static"><type>constexpr unsigned</type><purpose>Returns the options. </purpose></method>
|
|
<method name="inclusive" cv="noexcept" specifiers="static"><type>constexpr bool</type><purpose>Whether the axis is inclusive (see <classname alt="boost::histogram::axis::traits::is_inclusive">axis::traits::is_inclusive</classname>). </purpose></method>
|
|
<method name="ordered" cv="noexcept" specifiers="static"><type>constexpr bool</type><purpose>Indicate that the axis is not ordered. </purpose></method>
|
|
</method-group>
|
|
</class>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/axis/integer.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="axis">
|
|
<class name="integer"><template>
|
|
<template-type-parameter name="Value"><purpose><para>input value type. Must be integer or floating point. </para></purpose></template-type-parameter>
|
|
<template-type-parameter name="MetaData"><purpose><para>type to store meta data. </para></purpose></template-type-parameter>
|
|
<template-type-parameter name="Options"><purpose><para>see boost::histogram::axis::option (all values allowed). </para></purpose></template-type-parameter>
|
|
</template><inherit access="public">boost::histogram::axis::iterator_mixin< integer< Value, MetaData, Options > ></inherit><inherit access="public">metadata_base_t< MetaData ></inherit><purpose>Axis for an interval of integer values with unit steps. </purpose><description><para>Binning is a O(1) operation. This axis bins faster than a regular axis.</para><para>
|
|
</para></description><method-group name="public member functions">
|
|
<method name="index" cv="const noexcept"><type>index_type</type><parameter name="x"><paramtype>value_type</paramtype></parameter><purpose>Return index for value argument. </purpose></method>
|
|
<method name="update" cv="noexcept"><type>auto</type><parameter name="x"><paramtype>value_type</paramtype></parameter><purpose>Returns index and shift (if axis has grown) for the passed argument. </purpose></method>
|
|
<method name="value" cv="const noexcept"><type>value_type</type><parameter name="i"><paramtype>local_index_type</paramtype></parameter><purpose>Return value for index argument. </purpose></method>
|
|
<method name="bin" cv="const noexcept"><type>decltype(auto)</type><parameter name="idx"><paramtype>index_type</paramtype></parameter><purpose>Return bin for index argument. </purpose></method>
|
|
<method name="size" cv="const noexcept"><type>index_type</type><purpose>Returns the number of bins, without over- or underflow. </purpose></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="V"/>
|
|
<template-type-parameter name="M"/>
|
|
<template-type-parameter name="O"/>
|
|
</template><parameter name="o"><paramtype>const <classname>integer</classname>< V, M, O > &</paramtype></parameter></method>
|
|
<method name="operator!=" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="V"/>
|
|
<template-type-parameter name="M"/>
|
|
<template-type-parameter name="O"/>
|
|
</template><parameter name="o"><paramtype>const <classname>integer</classname>< V, M, O > &</paramtype></parameter></method>
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name="ar"><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor cv="= default"/>
|
|
<constructor><parameter name="start"><paramtype>value_type</paramtype><description><para>first integer of covered range. </para></description></parameter><parameter name="stop"><paramtype>value_type</paramtype><description><para>one past last integer of covered range. </para></description></parameter><parameter name="meta"><paramtype>metadata_type</paramtype><default>{}</default><description><para>description of the axis. </para></description></parameter><purpose>Construct over semi-open integer interval [start, stop). </purpose><description><para>
|
|
</para></description></constructor>
|
|
<constructor><parameter name="src"><paramtype>const <classname>integer</classname> &</paramtype></parameter><parameter name="begin"><paramtype>index_type</paramtype></parameter><parameter name="end"><paramtype>index_type</paramtype></parameter><parameter name="merge"><paramtype>unsigned</paramtype></parameter><purpose>Constructor used by algorithm::reduce to shrink and rebin. </purpose></constructor>
|
|
<method-group name="public static functions">
|
|
<method name="options" cv="noexcept" specifiers="static"><type>constexpr unsigned</type><purpose>Returns the options. </purpose></method>
|
|
<method name="inclusive" cv="noexcept" specifiers="static"><type>constexpr bool</type><purpose>Whether the axis is inclusive (see <classname alt="boost::histogram::axis::traits::is_inclusive">axis::traits::is_inclusive</classname>). </purpose></method>
|
|
</method-group>
|
|
<method-group name="private member functions">
|
|
<method name="index_impl" cv="const noexcept"><type>index_type</type><template>
|
|
<template-type-parameter name="B"/>
|
|
</template><parameter name=""><paramtype>std::false_type</paramtype></parameter><parameter name=""><paramtype>B</paramtype></parameter><parameter name="z"><paramtype>double</paramtype></parameter></method>
|
|
<method name="index_impl" cv="const noexcept"><type>index_type</type><parameter name=""><paramtype>std::true_type</paramtype></parameter><parameter name=""><paramtype>std::false_type</paramtype></parameter><parameter name="z"><paramtype>double</paramtype></parameter></method>
|
|
<method name="index_impl" cv="const noexcept"><type>index_type</type><parameter name=""><paramtype>std::true_type</paramtype></parameter><parameter name=""><paramtype>std::true_type</paramtype></parameter><parameter name="z"><paramtype>double</paramtype></parameter></method>
|
|
</method-group>
|
|
</class>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/axis/interval_view.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="axis">
|
|
<class name="interval_view"><template>
|
|
<template-type-parameter name="Axis"/>
|
|
</template><purpose>Lightweight bin view. </purpose><description><para>Represents the current bin interval. </para></description><method-group name="public member functions">
|
|
<method name="lower" cv="const noexcept"><type>decltype(auto)</type><purpose>Return lower edge of bin. </purpose></method>
|
|
<method name="upper" cv="const noexcept"><type>decltype(auto)</type><purpose>Return upper edge of bin. </purpose></method>
|
|
<method name="center" cv="const noexcept"><type>decltype(auto)</type><purpose>Return center of bin. </purpose></method>
|
|
<method name="width" cv="const noexcept"><type>decltype(auto)</type><purpose>Return width of bin. </purpose></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="BinType"/>
|
|
</template><parameter name="rhs"><paramtype>const BinType &</paramtype></parameter></method>
|
|
<method name="operator!=" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="BinType"/>
|
|
</template><parameter name="rhs"><paramtype>const BinType &</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor><parameter name="axis"><paramtype>const Axis &</paramtype></parameter><parameter name="idx"><paramtype>index_type</paramtype></parameter></constructor>
|
|
<constructor cv="= delete"><parameter name="axis"><paramtype>Axis &&</paramtype></parameter><parameter name="idx"><paramtype>index_type</paramtype></parameter></constructor>
|
|
</class>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/axis/iterator.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="axis">
|
|
<class name="iterator"><template>
|
|
<template-type-parameter name="Axis"/>
|
|
</template><method-group name="public member functions">
|
|
<method name="operator *" cv="const"><type>decltype(auto)</type><purpose>Return current bin object. </purpose></method>
|
|
</method-group>
|
|
<constructor><parameter name="axis"><paramtype>const Axis &</paramtype></parameter><parameter name="idx"><paramtype>index_type</paramtype></parameter><purpose>Make iterator from axis and index. </purpose></constructor>
|
|
</class><class name="iterator_mixin"><template>
|
|
<template-type-parameter name="Derived"/>
|
|
</template><purpose>Uses CRTP to inject iterator logic into Derived. </purpose><typedef name="const_iterator"><type>iterator< Derived ></type></typedef>
|
|
<typedef name="const_reverse_iterator"><type>std::reverse_iterator< const_iterator ></type></typedef>
|
|
<method-group name="public member functions">
|
|
<method name="begin" cv="const noexcept"><type>const_iterator</type><purpose>Bin iterator to beginning of the axis (read-only). </purpose></method>
|
|
<method name="end" cv="const noexcept"><type>const_iterator</type><purpose>Bin iterator to the end of the axis (read-only). </purpose></method>
|
|
<method name="rbegin" cv="const noexcept"><type>const_reverse_iterator</type><purpose>Reverse bin iterator to the last entry of the axis (read-only). </purpose></method>
|
|
<method name="rend" cv="const noexcept"><type>const_reverse_iterator</type><purpose>Reverse bin iterator to the end (read-only). </purpose></method>
|
|
</method-group>
|
|
</class>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/axis/metadata_base.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="axis">
|
|
<class name="metadata_base"><template>
|
|
<template-type-parameter name="Metadata"><purpose><para>Wrapped meta data type. </para></purpose></template-type-parameter>
|
|
<template-nontype-parameter name="Detail"><type>bool</type></template-nontype-parameter>
|
|
</template><purpose>Meta data holder with space optimization for empty meta data types. </purpose><description><para>Allows write-access to metadata even if const.</para><para>
|
|
</para></description><method-group name="protected member functions">
|
|
</method-group>
|
|
<constructor cv="= default"/>
|
|
<constructor cv="= default"><parameter name=""><paramtype>const <classname>metadata_base</classname> &</paramtype></parameter></constructor>
|
|
<copy-assignment cv="= default"><type><classname>metadata_base</classname> &</type><parameter name=""><paramtype>const <classname>metadata_base</classname> &</paramtype></parameter></copy-assignment>
|
|
<constructor cv="noexcept"><parameter name="o"><paramtype><classname>metadata_base</classname> &&</paramtype></parameter></constructor>
|
|
<constructor cv="noexcept"><parameter name="o"><paramtype>metadata_type &&</paramtype></parameter></constructor>
|
|
<copy-assignment cv="noexcept"><type><classname>metadata_base</classname> &</type><parameter name="o"><paramtype><classname>metadata_base</classname> &&</paramtype></parameter></copy-assignment>
|
|
<method-group name="public member functions">
|
|
<method name="metadata" cv="noexcept"><type>metadata_type &</type><purpose>Returns reference to metadata. </purpose></method>
|
|
<method name="metadata" cv="const noexcept"><type>metadata_type &</type><purpose>Returns reference to mutable metadata from const axis. </purpose></method>
|
|
</method-group>
|
|
</class>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/axis/option.hpp">
|
|
<para>Options for builtin axis types. </para><para>Options <computeroutput>circular</computeroutput> and <computeroutput>growth</computeroutput> are mutually exclusive. Options <computeroutput>circular</computeroutput> and <computeroutput>underflow</computeroutput> are mutually exclusive. </para><namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="axis">
|
|
<namespace name="option">
|
|
<struct name="bit"><template>
|
|
<template-nontype-parameter name="Pos"><type>unsigned</type><purpose><para>position of the bit in the set. </para></purpose></template-nontype-parameter>
|
|
</template><inherit access="public">boost::histogram::axis::option::bitset<(1<< Pos)></inherit><purpose>Single option flag. </purpose><description><para>
|
|
</para></description></struct><struct name="bitset"><template>
|
|
<template-nontype-parameter name="Bits"><type>unsigned</type></template-nontype-parameter>
|
|
</template><inherit access="public">std::integral_constant< unsigned, Bits ></inherit><purpose>Holder of axis options. </purpose><method-group name="public static functions">
|
|
<method name="test" specifiers="static"><type>constexpr auto</type><template>
|
|
<template-nontype-parameter name="B"><type>unsigned</type></template-nontype-parameter>
|
|
</template><parameter name=""><paramtype><classname>bitset</classname>< B ></paramtype></parameter><purpose>Returns true if all option flags in the argument are set and false otherwise. </purpose></method>
|
|
</method-group>
|
|
</struct><typedef name="none_t"><purpose>All options off. </purpose><type><classname>bitset</classname>< 0 ></type></typedef>
|
|
<typedef name="underflow_t"><purpose>Axis has an underflow bin. Mutually exclusive with <computeroutput>circular</computeroutput>. </purpose><type><classname>bit</classname>< 0 ></type></typedef>
|
|
<typedef name="overflow_t"><purpose>Axis has overflow bin. </purpose><type><classname>bit</classname>< 1 ></type></typedef>
|
|
<typedef name="circular_t"><purpose>Axis is circular. Mutually exclusive with <computeroutput>growth</computeroutput> and <computeroutput>underflow</computeroutput>. </purpose><type><classname>bit</classname>< 2 ></type></typedef>
|
|
<typedef name="growth_t"><purpose>Axis can grow. Mutually exclusive with <computeroutput>circular</computeroutput>. </purpose><type><classname>bit</classname>< 3 ></type></typedef>
|
|
<data-member name="none"><type>constexpr none_t</type><purpose>Instance of <computeroutput>none_t</computeroutput>. </purpose></data-member>
|
|
<data-member name="underflow"><type>constexpr underflow_t</type><purpose>Instance of <computeroutput>underflow_t</computeroutput>. </purpose></data-member>
|
|
<data-member name="overflow"><type>constexpr overflow_t</type><purpose>Instance of <computeroutput>overflow_t</computeroutput>. </purpose></data-member>
|
|
<data-member name="circular"><type>constexpr circular_t</type><purpose>Instance of <computeroutput>circular_t</computeroutput>. </purpose></data-member>
|
|
<data-member name="growth"><type>constexpr growth_t</type><purpose>Instance of <computeroutput>growth_t</computeroutput>. </purpose></data-member>
|
|
<function name="operator|"><type>constexpr auto</type><template>
|
|
<template-nontype-parameter name="B1"><type>unsigned</type></template-nontype-parameter>
|
|
<template-nontype-parameter name="B2"><type>unsigned</type></template-nontype-parameter>
|
|
</template><parameter name=""><paramtype><classname>bitset</classname>< B1 ></paramtype></parameter><parameter name=""><paramtype><classname>bitset</classname>< B2 ></paramtype></parameter><purpose>Set union of the axis option arguments. </purpose></function>
|
|
<function name="operator&"><type>constexpr auto</type><template>
|
|
<template-nontype-parameter name="B1"><type>unsigned</type></template-nontype-parameter>
|
|
<template-nontype-parameter name="B2"><type>unsigned</type></template-nontype-parameter>
|
|
</template><parameter name=""><paramtype><classname>bitset</classname>< B1 ></paramtype></parameter><parameter name=""><paramtype><classname>bitset</classname>< B2 ></paramtype></parameter><purpose>Set intersection of the option arguments. </purpose></function>
|
|
<function name="operator-"><type>constexpr auto</type><template>
|
|
<template-nontype-parameter name="B1"><type>unsigned</type></template-nontype-parameter>
|
|
<template-nontype-parameter name="B2"><type>unsigned</type></template-nontype-parameter>
|
|
</template><parameter name=""><paramtype><classname>bitset</classname>< B1 ></paramtype></parameter><parameter name=""><paramtype><classname>bitset</classname>< B2 ></paramtype></parameter><purpose>Set difference of the option arguments. </purpose></function>
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/axis/polymorphic_bin.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="axis">
|
|
<class name="polymorphic_bin"><template>
|
|
<template-type-parameter name="RealType"/>
|
|
</template><purpose>Holds the bin data of an <classname alt="boost::histogram::axis::variant">axis::variant</classname>. </purpose><description><para>The interface is a superset of the <classname alt="boost::histogram::axis::interval_view">axis::interval_view</classname> class. In addition, the object is implicitly convertible to the value type, returning the equivalent of a call to lower(). For discrete axes, lower() == upper(), and width() returns zero.</para><para>This is not a view like <classname alt="boost::histogram::axis::interval_view">axis::interval_view</classname> for two reasons.<itemizedlist>
|
|
<listitem><para>Sequential calls to lower() and upper() would have to each loop through the variant types. This is likely to be slower than filling all the data in one loop.</para>
|
|
</listitem><listitem><para><classname alt="boost::histogram::axis::polymorphic_bin">polymorphic_bin</classname> may be created from a temporary instance of <classname alt="boost::histogram::axis::variant">axis::variant</classname>, like in the call histogram::axis(0). Storing a reference to the axis would result in a dangling reference. Rather than specialing the code to handle this, it seems easier to just use a value instead of a view. </para>
|
|
</listitem></itemizedlist>
|
|
</para></description><method-group name="public member functions">
|
|
<method name="conversion-operator" cv="const noexcept"><type>const value_type &</type><purpose>Implicitly convert to bin value (for axis with discrete values). </purpose></method>
|
|
<method name="lower" cv="const noexcept"><type>value_type</type><purpose>Return lower edge of bin. </purpose></method>
|
|
<method name="upper" cv="const noexcept"><type>value_type</type><purpose>Return upper edge of bin. </purpose></method>
|
|
<method name="center" cv="const noexcept"><type>value_type</type><purpose>Return center of bin. </purpose></method>
|
|
<method name="width" cv="const noexcept"><type>value_type</type><purpose>Return width of bin. </purpose></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="BinType"/>
|
|
</template><parameter name="rhs"><paramtype>const BinType &</paramtype></parameter></method>
|
|
<method name="operator!=" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="BinType"/>
|
|
</template><parameter name="rhs"><paramtype>const BinType &</paramtype></parameter></method>
|
|
<method name="is_discrete" cv="const noexcept"><type>bool</type><purpose>Return true if bin is discrete. </purpose></method>
|
|
</method-group>
|
|
<constructor><parameter name="lower"><paramtype>value_type</paramtype></parameter><parameter name="upper"><paramtype>value_type</paramtype></parameter></constructor>
|
|
<method-group name="private member functions">
|
|
<method name="equal_impl" cv="const noexcept"><type>bool</type><parameter name="rhs"><paramtype>const <classname>polymorphic_bin</classname> &</paramtype></parameter><parameter name=""><paramtype>int</paramtype></parameter></method>
|
|
<method name="equal_impl" cv="const noexcept"><type>auto</type><template>
|
|
<template-type-parameter name="BinType"/>
|
|
</template><parameter name="rhs"><paramtype>const BinType &</paramtype></parameter><parameter name=""><paramtype>decltype(rhs.lower(), 0)</paramtype></parameter></method>
|
|
<method name="equal_impl" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="BinType"/>
|
|
</template><parameter name="rhs"><paramtype>const BinType &</paramtype></parameter><parameter name=""><paramtype>float</paramtype></parameter></method>
|
|
</method-group>
|
|
</class>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/axis/regular.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="axis">
|
|
<class name="circular"><template>
|
|
<template-type-parameter name="Value"><default>double</default></template-type-parameter>
|
|
<template-type-parameter name="MetaData"><default>use_default</default></template-type-parameter>
|
|
<template-type-parameter name="Options"><default>use_default</default></template-type-parameter>
|
|
</template><purpose>Regular axis with circular option already set. </purpose></class><class name="regular"><template>
|
|
<template-type-parameter name="Value"><purpose><para>input value type, must be floating point. </para></purpose></template-type-parameter>
|
|
<template-type-parameter name="Transform"><purpose><para>builtin or user-defined transform type. </para></purpose></template-type-parameter>
|
|
<template-type-parameter name="MetaData"><purpose><para>type to store meta data. </para></purpose></template-type-parameter>
|
|
<template-type-parameter name="Options"><purpose><para>see boost::histogram::axis::option (all values allowed). </para></purpose></template-type-parameter>
|
|
</template><inherit access="public">boost::histogram::axis::iterator_mixin< regular< Value, Transform, MetaData, Options > ></inherit><inherit access="public">metadata_base_t< MetaData ></inherit><purpose>Axis for equidistant intervals on the real line. </purpose><description><para>The most common binning strategy. Very fast. Binning is a O(1) operation.</para><para>
|
|
</para></description><method-group name="public member functions">
|
|
<method name="transform" cv="const noexcept"><type>const transform_type &</type><purpose>Return instance of the transform type. </purpose></method>
|
|
<method name="index" cv="const noexcept"><type>index_type</type><parameter name="x"><paramtype>value_type</paramtype></parameter><purpose>Return index for value argument. </purpose></method>
|
|
<method name="update" cv="noexcept"><type>std::pair< index_type, index_type ></type><parameter name="x"><paramtype>value_type</paramtype></parameter><purpose>Returns index and shift (if axis has grown) for the passed argument. </purpose></method>
|
|
<method name="value" cv="const noexcept"><type>value_type</type><parameter name="i"><paramtype>real_index_type</paramtype></parameter><purpose>Return value for fractional index argument. </purpose></method>
|
|
<method name="bin" cv="const noexcept"><type>decltype(auto)</type><parameter name="idx"><paramtype>index_type</paramtype></parameter><purpose>Return bin for index argument. </purpose></method>
|
|
<method name="size" cv="const noexcept"><type>index_type</type><purpose>Returns the number of bins, without over- or underflow. </purpose></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="V"/>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name="M"/>
|
|
<template-type-parameter name="O"/>
|
|
</template><parameter name="o"><paramtype>const <classname>regular</classname>< V, T, M, O > &</paramtype></parameter></method>
|
|
<method name="operator!=" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="V"/>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name="M"/>
|
|
<template-type-parameter name="O"/>
|
|
</template><parameter name="o"><paramtype>const <classname>regular</classname>< V, T, M, O > &</paramtype></parameter></method>
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name="ar"><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor cv="= default"/>
|
|
<constructor><parameter name="trans"><paramtype>transform_type</paramtype><description><para>transform instance to use. </para></description></parameter><parameter name="n"><paramtype>unsigned</paramtype><description><para>number of bins. </para></description></parameter><parameter name="start"><paramtype>value_type</paramtype><description><para>low edge of first bin. </para></description></parameter><parameter name="stop"><paramtype>value_type</paramtype><description><para>high edge of last bin. </para></description></parameter><parameter name="meta"><paramtype>metadata_type</paramtype><default>{}</default><description><para>description of the axis (optional). </para></description></parameter><purpose>Construct n bins over real transformed range [start, stop). </purpose><description><para>
|
|
</para></description></constructor>
|
|
<constructor><parameter name="n"><paramtype>unsigned</paramtype><description><para>number of bins. </para></description></parameter><parameter name="start"><paramtype>value_type</paramtype><description><para>low edge of first bin. </para></description></parameter><parameter name="stop"><paramtype>value_type</paramtype><description><para>high edge of last bin. </para></description></parameter><parameter name="meta"><paramtype>metadata_type</paramtype><default>{}</default><description><para>description of the axis (optional). </para></description></parameter><purpose>Construct n bins over real range [start, stop). </purpose><description><para>
|
|
</para></description></constructor>
|
|
<constructor><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="trans"><paramtype>transform_type</paramtype><description><para>transform instance to use. </para></description></parameter><parameter name="step"><paramtype>step_type< T ></paramtype><description><para>width of a single bin. </para></description></parameter><parameter name="start"><paramtype>value_type</paramtype><description><para>low edge of first bin. </para></description></parameter><parameter name="stop"><paramtype>value_type</paramtype><description><para>upper limit of high edge of last bin (see below). </para></description></parameter><parameter name="meta"><paramtype>metadata_type</paramtype><default>{}</default><description><para>description of the axis (optional).</para></description></parameter><purpose>Construct bins with the given step size over real transformed range [start, stop). </purpose><description><para>
|
|
The axis computes the number of bins as n = abs(stop - start) / step, rounded down. This means that stop is an upper limit to the actual value (start + n * step). </para></description></constructor>
|
|
<constructor><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="step"><paramtype>step_type< T ></paramtype><description><para>width of a single bin. </para></description></parameter><parameter name="start"><paramtype>value_type</paramtype><description><para>low edge of first bin. </para></description></parameter><parameter name="stop"><paramtype>value_type</paramtype><description><para>upper limit of high edge of last bin (see below). </para></description></parameter><parameter name="meta"><paramtype>metadata_type</paramtype><default>{}</default><description><para>description of the axis (optional).</para></description></parameter><purpose>Construct bins with the given step size over real range [start, stop). </purpose><description><para>
|
|
The axis computes the number of bins as n = abs(stop - start) / step, rounded down. This means that stop is an upper limit to the actual value (start + n * step). </para></description></constructor>
|
|
<constructor><parameter name="src"><paramtype>const <classname>regular</classname> &</paramtype></parameter><parameter name="begin"><paramtype>index_type</paramtype></parameter><parameter name="end"><paramtype>index_type</paramtype></parameter><parameter name="merge"><paramtype>unsigned</paramtype></parameter><purpose>Constructor used by algorithm::reduce to shrink and rebin (not for users). </purpose></constructor>
|
|
<method-group name="public static functions">
|
|
<method name="options" cv="noexcept" specifiers="static"><type>constexpr unsigned</type><purpose>Returns the options. </purpose></method>
|
|
</method-group>
|
|
</class><namespace name="transform">
|
|
<struct name="id"><purpose>Identity transform for equidistant bins. </purpose><method-group name="public static functions">
|
|
<method name="forward" cv="noexcept" specifiers="static"><type>T</type><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="x"><paramtype>T &&</paramtype></parameter><purpose>Pass-through. </purpose></method>
|
|
<method name="inverse" cv="noexcept" specifiers="static"><type>T</type><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="x"><paramtype>T &&</paramtype></parameter><purpose>Pass-through. </purpose></method>
|
|
</method-group>
|
|
<method-group name="public member functions">
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name=""><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
</struct><struct name="log"><purpose>Log transform for equidistant bins in log-space. </purpose><method-group name="public static functions">
|
|
<method name="forward" specifiers="static"><type>T</type><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="x"><paramtype>T</paramtype></parameter><purpose>Returns log(x) of external value x. </purpose></method>
|
|
<method name="inverse" specifiers="static"><type>T</type><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="x"><paramtype>T</paramtype></parameter><purpose>Returns exp(x) for internal value x. </purpose></method>
|
|
</method-group>
|
|
<method-group name="public member functions">
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name=""><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
</struct><struct name="pow"><purpose>Pow transform for equidistant bins in pow-space. </purpose><data-member name="power"><type>double</type><purpose>power index </purpose></data-member>
|
|
<method-group name="public member functions">
|
|
<method name="forward" cv="const"><type>auto</type><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="x"><paramtype>T</paramtype></parameter><purpose>Returns pow(x, power) of external value x. </purpose></method>
|
|
<method name="inverse" cv="const"><type>auto</type><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="x"><paramtype>T</paramtype></parameter><purpose>Returns pow(x, 1/power) of external value x. </purpose></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><parameter name="o"><paramtype>const <classname>pow</classname> &</paramtype></parameter></method>
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name="ar"><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor specifiers="explicit"><parameter name="p"><paramtype>double</paramtype></parameter><purpose>Make transform with index p. </purpose></constructor>
|
|
<constructor cv="= default"/>
|
|
</struct><struct name="sqrt"><purpose>Sqrt transform for equidistant bins in sqrt-space. </purpose><method-group name="public static functions">
|
|
<method name="forward" specifiers="static"><type>T</type><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="x"><paramtype>T</paramtype></parameter><purpose>Returns sqrt(x) of external value x. </purpose></method>
|
|
<method name="inverse" specifiers="static"><type>T</type><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="x"><paramtype>T</paramtype></parameter><purpose>Returns x^2 of internal value x. </purpose></method>
|
|
</method-group>
|
|
<method-group name="public member functions">
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name=""><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
</struct></namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<function name="step"><type>step_type< T ></type><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="t"><paramtype>T</paramtype></parameter><purpose>Helper function to mark argument as step size. </purpose></function>
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/axis/traits.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="axis">
|
|
<namespace name="traits">
|
|
<struct name="get_options"><template>
|
|
<template-type-parameter name="Axis"><purpose><para>axis type </para></purpose></template-type-parameter>
|
|
</template><purpose>Get axis options for axis type. </purpose><description><para>Doxygen does not render this well. This is a meta-function (template alias), it accepts an axis type and returns the <classname alt="boost::histogram::axis::option::bitset">boost::histogram::axis::option::bitset</classname>.</para><para>If Axis::options() is valid and constexpr, <classname alt="boost::histogram::axis::traits::get_options">get_options</classname> is the corresponding option type. Otherwise, it is boost::histogram::axis::option::growth_t, if the axis has a method <computeroutput>update</computeroutput>, else boost::histogram::axis::option::none_t.</para><para>
|
|
</para></description></struct><struct name="is_continuous"><template>
|
|
<template-type-parameter name="Axis"/>
|
|
</template><purpose>Whether axis is continuous or discrete. </purpose><description><para>Doxygen does not render this well. This is a meta-function (template alias), it accepts an axis type and returns a compile-time boolean.</para><para>If the boolean is true, the axis is continuous (covers a continuous range of values). Otherwise it is discrete (covers discrete values). </para></description></struct><struct name="is_inclusive"><template>
|
|
<template-type-parameter name="Axis"><purpose><para>axis type </para></purpose></template-type-parameter>
|
|
</template><purpose>Meta-function to detect whether an axis is inclusive. </purpose><description><para>Doxygen does not render this well. This is a meta-function (template alias), it accepts an axis type and represents compile-time boolean which is true or false, depending on whether the axis is inclusive or not.</para><para>An axis with underflow and overflow bins is always inclusive, but an axis may be inclusive under other conditions. The meta-function checks for the method <computeroutput>constexpr static bool inclusive()</computeroutput>, and uses the result. If this method is not present, it uses get_options<Axis> and checks whether the underflow and overflow bits are present.</para><para>An inclusive axis has a bin for every possible input value. A histogram which consists only of inclusive axes can be filled more efficiently, since input values always end up in a valid cell and there is no need to keep track of input tuples that need to be discarded.</para><para>
|
|
</para></description></struct><struct name="is_ordered"><template>
|
|
<template-type-parameter name="Axis"><purpose><para>axis type </para></purpose></template-type-parameter>
|
|
</template><purpose>Meta-function to detect whether an axis is ordered. </purpose><description><para>Doxygen does not render this well. This is a meta-function (template alias), it accepts an axis type and returns a compile-time boolean. If the boolean is true, the axis is ordered.</para><para>The meta-function checks for the method <computeroutput>constexpr static bool ordered()</computeroutput>, and uses the result. If this method is not present, it returns true if the value type of the Axis is arithmetic and false otherwise.</para><para>An ordered axis has a value type that is ordered, which means that indices i < j < k implies either value(i) < value(j) < value(k) or value(i) > value(j) > value(k) for all i,j,k. For example, the integer axis is ordered, but the category axis is not. Axis which are not ordered must not have underflow bins, because they only have an "other" category, which is identified with the overflow bin if it is available.</para><para>
|
|
</para></description></struct><struct name="is_reducible"><template>
|
|
<template-type-parameter name="Axis"><purpose><para>axis type. </para></purpose></template-type-parameter>
|
|
</template><purpose>Meta-function to detect whether an axis is reducible. </purpose><description><para>Doxygen does not render this well. This is a meta-function (template alias), it accepts an axis type and represents compile-time boolean which is true or false, depending on whether the axis can be reduced with boost::histogram::algorithm::reduce().</para><para>An axis can be made reducible by adding a special constructor, see Axis concept for details.</para><para>
|
|
</para></description></struct><struct name="value_type"><template>
|
|
<template-type-parameter name="Axis"><purpose><para>axis type. </para></purpose></template-type-parameter>
|
|
</template><purpose>Value type for axis type. </purpose><description><para>Doxygen does not render this well. This is a meta-function (template alias), it accepts an axis type and returns the value type.</para><para>The value type is deduced from the argument of the <computeroutput>Axis::index</computeroutput> method. Const references are decayed to the their value types, for example, the type deduced for <computeroutput>Axis::index(const int&)</computeroutput> is <computeroutput>int</computeroutput>.</para><para>The deduction always succeeds if the axis type models the Axis concept correctly. Errors come from violations of the concept, in particular, an index method that is templated or overloaded is not allowed.</para><para>
|
|
</para></description></struct><function name="options"><type>constexpr unsigned</type><template>
|
|
<template-type-parameter name="Axis"/>
|
|
</template><parameter name="axis"><paramtype>const Axis &</paramtype><description><para>any axis instance </para></description></parameter><purpose>Returns axis options as unsigned integer. </purpose><description><para>See <classname alt="boost::histogram::axis::traits::get_options">get_options</classname> for details.</para><para>
|
|
</para></description></function>
|
|
<function name="options"><type>unsigned</type><template>
|
|
<template-nontype-parameter name="Ts"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="axis"><paramtype>const <classname>variant</classname>< Ts... > &</paramtype></parameter></function>
|
|
<function name="inclusive"><type>constexpr bool</type><template>
|
|
<template-type-parameter name="Axis"/>
|
|
</template><parameter name="axis"><paramtype>const Axis &</paramtype><description><para>any axis instance </para></description></parameter><purpose>Returns true if axis is inclusive or false. </purpose><description><para>See <classname alt="boost::histogram::axis::traits::is_inclusive">is_inclusive</classname> for details.</para><para>
|
|
</para></description></function>
|
|
<function name="inclusive"><type>bool</type><template>
|
|
<template-nontype-parameter name="Ts"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="axis"><paramtype>const <classname>variant</classname>< Ts... > &</paramtype></parameter></function>
|
|
<function name="ordered"><type>constexpr bool</type><template>
|
|
<template-type-parameter name="Axis"/>
|
|
</template><parameter name="axis"><paramtype>const Axis &</paramtype><description><para>any axis instance </para></description></parameter><purpose>Returns true if axis is ordered or false. </purpose><description><para>See <classname alt="boost::histogram::axis::traits::is_ordered">is_ordered</classname> for details.</para><para>
|
|
</para></description></function>
|
|
<function name="ordered"><type>bool</type><template>
|
|
<template-nontype-parameter name="Ts"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="axis"><paramtype>const <classname>variant</classname>< Ts... > &</paramtype></parameter></function>
|
|
<function name="continuous"><type>constexpr bool</type><template>
|
|
<template-type-parameter name="Axis"/>
|
|
</template><parameter name="axis"><paramtype>const Axis &</paramtype><description><para>any axis instance </para></description></parameter><purpose>Returns true if axis is continuous or false. </purpose><description><para>See <classname alt="boost::histogram::axis::traits::is_continuous">is_continuous</classname> for details.</para><para>
|
|
</para></description></function>
|
|
<function name="continuous"><type>bool</type><template>
|
|
<template-nontype-parameter name="Ts"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="axis"><paramtype>const <classname>variant</classname>< Ts... > &</paramtype></parameter></function>
|
|
<function name="extent"><type>index_type</type><template>
|
|
<template-type-parameter name="Axis"/>
|
|
</template><parameter name="axis"><paramtype>const Axis &</paramtype><description><para>any axis instance </para></description></parameter><purpose>Returns axis size plus any extra bins for under- and overflow. </purpose><description><para>
|
|
</para></description></function>
|
|
<function name="metadata"><type>decltype(auto)</type><template>
|
|
<template-type-parameter name="Axis"/>
|
|
</template><parameter name="axis"><paramtype>Axis &&</paramtype><description><para>any axis instance </para></description></parameter><purpose>Returns reference to metadata of an axis. </purpose><description><para>If the expression x.metadata() for an axis instance <computeroutput>x</computeroutput> (maybe const) is valid, return the result. Otherwise, return a reference to a static instance of <classname alt="boost::histogram::axis::null_type">boost::histogram::axis::null_type</classname>.</para><para>
|
|
</para></description></function>
|
|
<function name="value"><type>decltype(auto)</type><template>
|
|
<template-type-parameter name="Axis"/>
|
|
</template><parameter name="axis"><paramtype>const Axis &</paramtype><description><para>any axis instance </para></description></parameter><parameter name="index"><paramtype>real_index_type</paramtype><description><para>floating point axis index </para></description></parameter><purpose>Returns axis value for index. </purpose><description><para>If the axis has no <computeroutput>value</computeroutput> method, throw std::runtime_error. If the method exists and accepts a floating point index, pass the index and return the result. If the method exists but accepts only integer indices, cast the floating point index to int, pass this index and return the result.</para><para>
|
|
</para></description></function>
|
|
<function name="value_as"><type>Result</type><template>
|
|
<template-type-parameter name="Result"><purpose><para>requested return type </para></purpose></template-type-parameter>
|
|
<template-type-parameter name="Axis"><purpose><para>axis type </para></purpose></template-type-parameter>
|
|
</template><parameter name="axis"><paramtype>const Axis &</paramtype><description><para>any axis instance </para></description></parameter><parameter name="index"><paramtype>real_index_type</paramtype><description><para>floating point axis index </para></description></parameter><purpose>Returns axis value for index if it is convertible to target type or throws. </purpose><description><para>Like boost::histogram::axis::traits::value, but converts the result into the requested return type. If the conversion is not possible, throws std::runtime_error.</para><para>
|
|
|
|
</para></description></function>
|
|
<function name="index"><type>axis::index_type</type><template>
|
|
<template-type-parameter name="Axis"/>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="axis"><paramtype>const Axis &</paramtype><description><para>any axis instance </para></description></parameter><parameter name="value"><paramtype>const U &</paramtype><description><para>argument to be passed to <computeroutput>index</computeroutput> method </para></description></parameter><purpose>Returns axis index for value. </purpose><description><para>Throws std::invalid_argument if the value argument is not implicitly convertible.</para><para>
|
|
</para></description></function>
|
|
<function name="index"><type>axis::index_type</type><template>
|
|
<template-nontype-parameter name="Ts"><type>class...</type></template-nontype-parameter>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="axis"><paramtype>const <classname>variant</classname>< Ts... > &</paramtype></parameter><parameter name="value"><paramtype>const U &</paramtype></parameter></function>
|
|
<function name="rank"><type>constexpr unsigned int</type><template>
|
|
<template-type-parameter name="Axis"/>
|
|
</template><parameter name="axis"><paramtype>const Axis &</paramtype><description><para>any axis instance </para></description></parameter><purpose>Return axis rank (how many arguments it processes). </purpose><description><para>
|
|
</para></description></function>
|
|
<function name="rank"><type>unsigned int</type><template>
|
|
<template-nontype-parameter name="Ts"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="axis"><paramtype>const <classname>axis::variant</classname>< Ts... > &</paramtype></parameter></function>
|
|
<function name="update"><type>std::pair< index_type, index_type ></type><template>
|
|
<template-type-parameter name="Axis"/>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="axis"><paramtype>Axis &</paramtype><description><para>any axis instance </para></description></parameter><parameter name="value"><paramtype>const U &</paramtype><description><para>argument to be passed to <computeroutput>update</computeroutput> or <computeroutput>index</computeroutput> method </para></description></parameter><purpose>Returns pair of axis index and shift for the value argument. </purpose><description><para>Throws <computeroutput>std::invalid_argument</computeroutput> if the value argument is not implicitly convertible to the argument expected by the <computeroutput>index</computeroutput> method. If the result of boost::histogram::axis::traits::get_options<decltype(axis)> has the growth flag set, call <computeroutput>update</computeroutput> method with the argument and return the result. Otherwise, call <computeroutput>index</computeroutput> and return the pair of the result and a zero shift.</para><para>
|
|
</para></description></function>
|
|
<function name="update"><type>std::pair< index_type, index_type ></type><template>
|
|
<template-nontype-parameter name="Ts"><type>class...</type></template-nontype-parameter>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="axis"><paramtype><classname>variant</classname>< Ts... > &</paramtype></parameter><parameter name="value"><paramtype>const U &</paramtype></parameter></function>
|
|
<function name="width"><type>decltype(auto)</type><template>
|
|
<template-type-parameter name="Axis"/>
|
|
</template><parameter name="axis"><paramtype>const Axis &</paramtype><description><para>any axis instance </para></description></parameter><parameter name="index"><paramtype>index_type</paramtype><description><para>bin index </para></description></parameter><purpose>Returns bin width at axis index. </purpose><description><para>If the axis has no <computeroutput>value</computeroutput> method, throw std::runtime_error. If the method exists and accepts a floating point index, return the result of <computeroutput>axis.value(index + 1) - axis.value(index)</computeroutput>. If the method exists but accepts only integer indices, return 0.</para><para>
|
|
</para></description></function>
|
|
<function name="width_as"><type>Result</type><template>
|
|
<template-type-parameter name="Result"/>
|
|
<template-type-parameter name="Axis"/>
|
|
</template><parameter name="axis"><paramtype>const Axis &</paramtype><description><para>any axis instance </para></description></parameter><parameter name="index"><paramtype>index_type</paramtype><description><para>bin index </para></description></parameter><purpose>Returns bin width at axis index. </purpose><description><para>Like boost::histogram::axis::traits::width, but converts the result into the requested return type. If the conversion is not possible, throw std::runtime_error.</para><para>
|
|
</para></description></function>
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/axis/variable.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="axis">
|
|
<class name="variable"><template>
|
|
<template-type-parameter name="Value"><purpose><para>input value type, must be floating point. </para></purpose></template-type-parameter>
|
|
<template-type-parameter name="MetaData"><purpose><para>type to store meta data. </para></purpose></template-type-parameter>
|
|
<template-type-parameter name="Options"><purpose><para>see boost::histogram::axis::option (all values allowed). </para></purpose></template-type-parameter>
|
|
<template-type-parameter name="Allocator"><purpose><para>allocator to use for dynamic memory management. </para></purpose></template-type-parameter>
|
|
</template><inherit access="public">boost::histogram::axis::iterator_mixin< variable< Value, MetaData, Options, Allocator > ></inherit><inherit access="public">metadata_base_t< MetaData ></inherit><purpose>Axis for non-equidistant bins on the real line. </purpose><description><para>Binning is a O(log(N)) operation. If speed matters and the problem domain allows it, prefer a regular axis, possibly with a transform.</para><para>
|
|
</para></description><method-group name="public member functions">
|
|
<method name="index" cv="const noexcept"><type>index_type</type><parameter name="x"><paramtype>value_type</paramtype></parameter><purpose>Return index for value argument. </purpose></method>
|
|
<method name="update" cv="noexcept"><type>std::pair< index_type, index_type ></type><parameter name="x"><paramtype>value_type</paramtype></parameter></method>
|
|
<method name="value" cv="const noexcept"><type>value_type</type><parameter name="i"><paramtype>real_index_type</paramtype></parameter><purpose>Return value for fractional index argument. </purpose></method>
|
|
<method name="bin" cv="const noexcept"><type>auto</type><parameter name="idx"><paramtype>index_type</paramtype></parameter><purpose>Return bin for index argument. </purpose></method>
|
|
<method name="size" cv="const noexcept"><type>index_type</type><purpose>Returns the number of bins, without over- or underflow. </purpose></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="V"/>
|
|
<template-type-parameter name="M"/>
|
|
<template-type-parameter name="O"/>
|
|
<template-type-parameter name="A"/>
|
|
</template><parameter name="o"><paramtype>const <classname>variable</classname>< V, M, O, A > &</paramtype></parameter></method>
|
|
<method name="operator!=" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="V"/>
|
|
<template-type-parameter name="M"/>
|
|
<template-type-parameter name="O"/>
|
|
<template-type-parameter name="A"/>
|
|
</template><parameter name="o"><paramtype>const <classname>variable</classname>< V, M, O, A > &</paramtype></parameter></method>
|
|
<method name="get_allocator" cv="const"><type>auto</type><purpose>Return allocator instance. </purpose></method>
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name="ar"><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor cv="= default"/>
|
|
<constructor specifiers="explicit"><parameter name="alloc"><paramtype>allocator_type</paramtype></parameter></constructor>
|
|
<constructor><template>
|
|
<template-type-parameter name="It"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterator<It></default></template-type-parameter>
|
|
</template><parameter name="begin"><paramtype>It</paramtype><description><para>begin of edge sequence. </para></description></parameter><parameter name="end"><paramtype>It</paramtype><description><para>end of edge sequence. </para></description></parameter><parameter name="meta"><paramtype>metadata_type</paramtype><default>{}</default><description><para>description of the axis. </para></description></parameter><parameter name="alloc"><paramtype>allocator_type</paramtype><default>{}</default><description><para>allocator instance to use. </para></description></parameter><purpose>Construct from iterator range of bin edges. </purpose><description><para>
|
|
</para></description></constructor>
|
|
<constructor><template>
|
|
<template-type-parameter name="U"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterable<U></default></template-type-parameter>
|
|
</template><parameter name="iterable"><paramtype>const U &</paramtype><description><para>iterable range of bin edges. </para></description></parameter><parameter name="meta"><paramtype>metadata_type</paramtype><default>{}</default><description><para>description of the axis. </para></description></parameter><parameter name="alloc"><paramtype>allocator_type</paramtype><default>{}</default><description><para>allocator instance to use. </para></description></parameter><purpose>Construct variable axis from iterable range of bin edges. </purpose><description><para>
|
|
</para></description></constructor>
|
|
<constructor><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="list"><paramtype>std::initializer_list< U ></paramtype><description><para><computeroutput>std::initializer_list</computeroutput> of bin edges. </para></description></parameter><parameter name="meta"><paramtype>metadata_type</paramtype><default>{}</default><description><para>description of the axis. </para></description></parameter><parameter name="alloc"><paramtype>allocator_type</paramtype><default>{}</default><description><para>allocator instance to use. </para></description></parameter><purpose>Construct variable axis from initializer list of bin edges. </purpose><description><para>
|
|
</para></description></constructor>
|
|
<constructor><parameter name="src"><paramtype>const <classname>variable</classname> &</paramtype></parameter><parameter name="begin"><paramtype>index_type</paramtype></parameter><parameter name="end"><paramtype>index_type</paramtype></parameter><parameter name="merge"><paramtype>unsigned</paramtype></parameter><purpose>Constructor used by algorithm::reduce to shrink and rebin (not for users). </purpose></constructor>
|
|
<method-group name="public static functions">
|
|
<method name="options" cv="noexcept" specifiers="static"><type>constexpr unsigned</type><purpose>Returns the options. </purpose></method>
|
|
</method-group>
|
|
</class>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/axis/variant.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="axis">
|
|
<class name="variant"><template>
|
|
<template-nontype-parameter name="Ts"><type>class...</type></template-nontype-parameter>
|
|
</template><inherit access="public">boost::histogram::axis::iterator_mixin< variant< Ts... > ></inherit><purpose>Polymorphic axis type. </purpose><method-group name="public member functions">
|
|
<method name="size" cv="const"><type>index_type</type><purpose>Return size of axis. </purpose></method>
|
|
<method name="options" cv="const"><type>unsigned</type><purpose>Return options of axis or option::none_t if axis has no options. </purpose></method>
|
|
<method name="inclusive" cv="const"><type>bool</type><purpose>Returns true if the axis is inclusive or false. </purpose></method>
|
|
<method name="ordered" cv="const"><type>bool</type><purpose>Returns true if the axis is ordered or false. </purpose></method>
|
|
<method name="continuous" cv="const"><type>bool</type><purpose>Returns true if the axis is continuous or false. </purpose></method>
|
|
<method name="metadata" cv="const"><type>metadata_type &</type><purpose>Return reference to const metadata or instance of <classname alt="boost::histogram::axis::null_type">null_type</classname> if axis has no metadata. </purpose></method>
|
|
<method name="metadata"><type>metadata_type &</type><purpose>Return reference to metadata or instance of <classname alt="boost::histogram::axis::null_type">null_type</classname> if axis has no metadata. </purpose></method>
|
|
<method name="index" cv="const"><type>index_type</type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="u"><paramtype>const U &</paramtype></parameter><purpose>Return index for value argument. </purpose><description><para>Throws std::invalid_argument if axis has incompatible call signature. </para></description></method>
|
|
<method name="value" cv="const"><type>double</type><parameter name="idx"><paramtype>real_index_type</paramtype></parameter><purpose>Return value for index argument. </purpose><description><para>Only works for axes with value method that returns something convertible to double and will throw a runtime_error otherwise, see axis::traits::value(). </para></description></method>
|
|
<method name="bin" cv="const"><type>auto</type><parameter name="idx"><paramtype>index_type</paramtype></parameter><purpose>Return bin for index argument. </purpose><description><para>Only works for axes with value method that returns something convertible to double and will throw a runtime_error otherwise, see axis::traits::value(). </para></description></method>
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name="ar"><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor cv="= default"/>
|
|
<constructor cv="= default"><parameter name=""><paramtype>const <classname>variant</classname> &</paramtype></parameter></constructor>
|
|
<copy-assignment cv="= default"><type><classname>variant</classname> &</type><parameter name=""><paramtype>const <classname>variant</classname> &</paramtype></parameter></copy-assignment>
|
|
<constructor cv="= default"><parameter name=""><paramtype><classname>variant</classname> &&</paramtype></parameter></constructor>
|
|
<copy-assignment cv="= default"><type><classname>variant</classname> &</type><parameter name=""><paramtype><classname>variant</classname> &&</paramtype></parameter></copy-assignment>
|
|
<constructor><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name=""><default>requires_bounded_type<T></default></template-type-parameter>
|
|
</template><parameter name="t"><paramtype>T &&</paramtype></parameter></constructor>
|
|
<copy-assignment><type><classname>variant</classname> &</type><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name=""><default>requires_bounded_type<T></default></template-type-parameter>
|
|
</template><parameter name="t"><paramtype>T &&</paramtype></parameter></copy-assignment>
|
|
<constructor><template>
|
|
<template-nontype-parameter name="Us"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="u"><paramtype>const <classname>variant</classname>< Us... > &</paramtype></parameter></constructor>
|
|
<copy-assignment><type><classname>variant</classname> &</type><template>
|
|
<template-nontype-parameter name="Us"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="u"><paramtype>const <classname>variant</classname>< Us... > &</paramtype></parameter></copy-assignment>
|
|
</class><class name="variant"><template>
|
|
</template></class><function name="visit"><type>decltype(auto)</type><template>
|
|
<template-type-parameter name="Visitor"/>
|
|
<template-nontype-parameter name="Us"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="vis"><paramtype>Visitor &&</paramtype></parameter><parameter name="var"><paramtype><classname>variant</classname>< Us... > &</paramtype></parameter><purpose>Apply visitor to variant (reference). </purpose></function>
|
|
<function name="visit"><type>decltype(auto)</type><template>
|
|
<template-type-parameter name="Visitor"/>
|
|
<template-nontype-parameter name="Us"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="vis"><paramtype>Visitor &&</paramtype></parameter><parameter name="var"><paramtype><classname>variant</classname>< Us... > &&</paramtype></parameter><purpose>Apply visitor to variant (movable reference). </purpose></function>
|
|
<function name="visit"><type>decltype(auto)</type><template>
|
|
<template-type-parameter name="Visitor"/>
|
|
<template-nontype-parameter name="Us"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="vis"><paramtype>Visitor &&</paramtype></parameter><parameter name="var"><paramtype>const <classname>variant</classname>< Us... > &</paramtype></parameter><purpose>Apply visitor to variant (const reference). </purpose></function>
|
|
<function name="get_if"><type>auto</type><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-nontype-parameter name="Us"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="v"><paramtype><classname>variant</classname>< Us... > *</paramtype></parameter><purpose>Returns pointer to T in variant or null pointer if type does not match. </purpose></function>
|
|
<function name="get_if"><type>auto</type><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-nontype-parameter name="Us"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="v"><paramtype>const <classname>variant</classname>< Us... > *</paramtype></parameter><purpose>Returns pointer to const T in variant or null pointer if type does not match. </purpose></function>
|
|
<function name="get"><type>decltype(auto)</type><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-nontype-parameter name="Us"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="v"><paramtype><classname>variant</classname>< Us... > &</paramtype></parameter><purpose>Return reference to T, throws std::runtime_error if type does not match. </purpose></function>
|
|
<function name="get"><type>decltype(auto)</type><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-nontype-parameter name="Us"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="v"><paramtype><classname>variant</classname>< Us... > &&</paramtype></parameter><purpose>Return movable reference to T, throws unspecified exception if type does not match. </purpose></function>
|
|
<function name="get"><type>decltype(auto)</type><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-nontype-parameter name="Us"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="v"><paramtype>const <classname>variant</classname>< Us... > &</paramtype></parameter><purpose>Return const reference to T, throws unspecified exception if type does not match. </purpose></function>
|
|
<function name="visit"><type>decltype(auto)</type><template>
|
|
<template-type-parameter name="Visitor"/>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="vis"><paramtype>Visitor &&</paramtype></parameter><parameter name="var"><paramtype>T &&</paramtype></parameter></function>
|
|
<function name="get"><type>decltype(auto)</type><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="u"><paramtype>U &&</paramtype></parameter></function>
|
|
<function name="get_if"><type>auto</type><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="u"><paramtype>U *</paramtype></parameter></function>
|
|
<function name="get_if"><type>auto</type><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="u"><paramtype>const U *</paramtype></parameter></function>
|
|
<function name="operator=="><type>bool</type><template>
|
|
<template-nontype-parameter name="Us"><type>class...</type></template-nontype-parameter>
|
|
<template-nontype-parameter name="Vs"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="u"><paramtype>const <classname>variant</classname>< Us... > &</paramtype></parameter><parameter name="v"><paramtype>const <classname>variant</classname>< Vs... > &</paramtype></parameter><purpose>Compare two variants. </purpose><description><para>Return true if the variants point to the same concrete axis type and the types compare equal. Otherwise return false. </para></description></function>
|
|
<function name="operator=="><type>bool</type><template>
|
|
<template-nontype-parameter name="Us"><type>class...</type></template-nontype-parameter>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="u"><paramtype>const <classname>variant</classname>< Us... > &</paramtype></parameter><parameter name="t"><paramtype>const T &</paramtype></parameter><purpose>Compare variant with a concrete axis type. </purpose><description><para>Return true if the variant point to the same concrete axis type and the types compare equal. Otherwise return false. </para></description></function>
|
|
<function name="operator=="><type>bool</type><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-nontype-parameter name="Us"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="t"><paramtype>const T &</paramtype></parameter><parameter name="u"><paramtype>const <classname>variant</classname>< Us... > &</paramtype></parameter></function>
|
|
<function name="operator!="><type>bool</type><template>
|
|
<template-nontype-parameter name="Us"><type>class...</type></template-nontype-parameter>
|
|
<template-nontype-parameter name="Ts"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="u"><paramtype>const <classname>variant</classname>< Us... > &</paramtype></parameter><parameter name="t"><paramtype>const <classname>variant</classname>< Ts... > &</paramtype></parameter><purpose>The negation of operator==. </purpose></function>
|
|
<function name="operator!="><type>bool</type><template>
|
|
<template-nontype-parameter name="Us"><type>class...</type></template-nontype-parameter>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="u"><paramtype>const <classname>variant</classname>< Us... > &</paramtype></parameter><parameter name="t"><paramtype>const T &</paramtype></parameter><purpose>The negation of operator==. </purpose></function>
|
|
<function name="operator!="><type>bool</type><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-nontype-parameter name="Us"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="t"><paramtype>const T &</paramtype></parameter><parameter name="u"><paramtype>const <classname>variant</classname>< Us... > &</paramtype></parameter><purpose>The negation of operator==. </purpose></function>
|
|
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/fwd.hpp">
|
|
<para>Forward declarations, tag types and type aliases. </para><namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="axis">
|
|
<struct name="null_type"><purpose>Empty metadata type. </purpose><method-group name="public member functions">
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name=""><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
</struct><typedef name="index_type"><purpose>Integral type for axis indices. </purpose><type>int</type></typedef>
|
|
<typedef name="real_index_type"><purpose>Real type for axis indices. </purpose><type>double</type></typedef>
|
|
<typedef name="empty_type"><purpose>Another alias for an empty metadata type. </purpose><type><classname>null_type</classname></type></typedef>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
<typedef name="dense_storage"><purpose>Vector-like storage for fast zero-overhead access to cells. </purpose><type><classname>storage_adaptor</classname>< std::vector< T, A > ></type></typedef>
|
|
<typedef name="default_storage"><purpose>Default storage, optimized for unweighted histograms. </purpose><type><classname>unlimited_storage</classname><></type></typedef>
|
|
<typedef name="weight_storage"><purpose>Dense storage which tracks sums of weights and a variance estimate. </purpose><type>dense_storage< <classname>accumulators::weighted_sum</classname><> ></type></typedef>
|
|
<typedef name="profile_storage"><purpose>Dense storage which tracks means of samples in each cell. </purpose><type>dense_storage< <classname>accumulators::mean</classname><> ></type></typedef>
|
|
<typedef name="weighted_profile_storage"><purpose>Dense storage which tracks means of weighted samples in each cell. </purpose><type>dense_storage< <classname>accumulators::weighted_mean</classname><> ></type></typedef>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
<macro name="BOOST_HISTOGRAM_DETAIL_AXES_LIMIT"/>
|
|
</header>
|
|
<header name="boost/histogram/indexed.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<class name="indexed_range"><template>
|
|
<template-type-parameter name="Histogram"/>
|
|
</template><purpose>Input iterator range over histogram bins with multi-dimensional index. </purpose><description><para>The iterator returned by begin() can only be incremented. begin() may only be called once, calling it a second time returns the end() iterator. If several copies of the input iterators exist, the other copies become invalid if one of them is incremented. </para></description><class name="accessor"><purpose>Lightweight view to access value and index of current cell. </purpose><description><para>The methods provide access to the current cell indices and bins. It acts like a pointer to the cell value, and in a limited way also like a reference. To interoperate with the algorithms of the standard library, the accessor is implicitly convertible to a cell value. Assignments and comparisons are passed through to the cell. An accessor is coupled to its parent <classname alt="boost::histogram::indexed_range::iterator">indexed_range::iterator</classname>. Moving the parent iterator forward also updates the linked accessor. Accessors are not copyable. They cannot be stored in containers, but <classname alt="boost::histogram::indexed_range::iterator">indexed_range::iterator</classname> can be stored. </para></description><class name="index_view"><purpose>Array-like view into the current multi-dimensional index. </purpose><class name="const_iterator"><purpose>implementation detail </purpose><method-group name="public member functions">
|
|
<method name="operator *" cv="const noexcept"><type>const_reference</type></method>
|
|
</method-group>
|
|
<method-group name="private member functions">
|
|
</method-group>
|
|
<constructor specifiers="explicit" cv="noexcept"><parameter name="i"><paramtype>index_pointer</paramtype></parameter></constructor>
|
|
</class><typedef name="const_reference"><type>const axis::index_type &</type></typedef>
|
|
<typedef name="reference"><purpose>deprecated </purpose><type>const_reference</type></typedef>
|
|
<method-group name="public member functions">
|
|
<method name="begin" cv="const noexcept"><type><classname>const_iterator</classname></type></method>
|
|
<method name="end" cv="const noexcept"><type><classname>const_iterator</classname></type></method>
|
|
<method name="size" cv="const noexcept"><type>std::size_t</type></method>
|
|
<method name="operator[]" cv="const noexcept"><type>const_reference</type><parameter name="d"><paramtype>unsigned</paramtype></parameter></method>
|
|
<method name="at" cv="const"><type>const_reference</type><parameter name="d"><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
<method-group name="private member functions">
|
|
</method-group>
|
|
<constructor><parameter name="b"><paramtype>index_pointer</paramtype></parameter><parameter name="e"><paramtype>index_pointer</paramtype></parameter><purpose>implementation detail </purpose></constructor>
|
|
</class><method-group name="public member functions">
|
|
<method name="get" cv="const noexcept"><type>value_reference</type><purpose>Returns the cell reference. </purpose></method>
|
|
<method name="operator *" cv="const noexcept"><type>value_reference</type><purpose>Returns the cell reference. </purpose></method>
|
|
<method name="operator->" cv="const noexcept"><type>value_iterator</type><purpose>Access fields and methods of the cell object. </purpose></method>
|
|
<method name="index" cv="const noexcept"><type>axis::index_type</type><parameter name="d"><paramtype>unsigned</paramtype><default>0</default><description><para>axis dimension. </para></description></parameter><purpose>Access current index. </purpose><description><para>
|
|
</para></description></method>
|
|
<method name="indices" cv="const noexcept"><type><classname>index_view</classname></type><purpose>Access indices as an iterable range. </purpose></method>
|
|
<method name="bin" cv="const"><type>decltype(auto)</type><template>
|
|
<template-nontype-parameter name="N"><type>unsigned</type><default>0</default><purpose><para>axis dimension. </para></purpose></template-nontype-parameter>
|
|
</template><parameter name=""><paramtype>std::integral_constant< unsigned, N ></paramtype><default>{}</default></parameter><purpose>Access current bin. </purpose><description><para>
|
|
</para></description></method>
|
|
<method name="bin" cv="const"><type>decltype(auto)</type><parameter name="d"><paramtype>unsigned</paramtype><description><para>axis dimension. </para></description></parameter><purpose>Access current bin. </purpose><description><para>
|
|
</para></description></method>
|
|
<method name="density" cv="const"><type>double</type><purpose>Computes density in current cell. </purpose><description><para>The density is computed as the cell value divided by the product of bin widths. Axes without bin widths, like <classname alt="boost::histogram::axis::category">axis::category</classname>, are treated as having unit bin with. </para></description></method>
|
|
<method name="operator<" cv="noexcept"><type>bool</type><parameter name="o"><paramtype>const <classname>accessor</classname> &</paramtype></parameter></method>
|
|
<method name="operator>" cv="noexcept"><type>bool</type><parameter name="o"><paramtype>const <classname>accessor</classname> &</paramtype></parameter></method>
|
|
<method name="operator==" cv="noexcept"><type>bool</type><parameter name="o"><paramtype>const <classname>accessor</classname> &</paramtype></parameter></method>
|
|
<method name="operator!=" cv="noexcept"><type>bool</type><parameter name="o"><paramtype>const <classname>accessor</classname> &</paramtype></parameter></method>
|
|
<method name="operator<=" cv="noexcept"><type>bool</type><parameter name="o"><paramtype>const <classname>accessor</classname> &</paramtype></parameter></method>
|
|
<method name="operator>=" cv="noexcept"><type>bool</type><parameter name="o"><paramtype>const <classname>accessor</classname> &</paramtype></parameter></method>
|
|
<method name="operator<" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="o"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="operator>" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="o"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="o"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="operator!=" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="o"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="operator<=" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="o"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="operator>=" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="o"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="conversion-operator" cv="const noexcept"><type>value_type</type></method>
|
|
</method-group>
|
|
<copy-assignment><type><classname>accessor</classname> &</type><parameter name="o"><paramtype>const <classname>accessor</classname> &</paramtype></parameter></copy-assignment>
|
|
<copy-assignment><type><classname>accessor</classname> &</type><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="x"><paramtype>const T &</paramtype></parameter></copy-assignment>
|
|
<method-group name="private member functions">
|
|
</method-group>
|
|
<constructor cv="noexcept"><parameter name="i"><paramtype><classname>iterator</classname> &</paramtype></parameter></constructor>
|
|
<constructor cv="= default"><parameter name=""><paramtype>const <classname>accessor</classname> &</paramtype></parameter></constructor>
|
|
</class><class name="iterator"><purpose>implementation detail </purpose><struct name="index_data"><data-member name="idx"><type>axis::index_type</type></data-member>
|
|
<data-member name="begin"><type>axis::index_type</type></data-member>
|
|
<data-member name="end"><type>axis::index_type</type></data-member>
|
|
<data-member name="begin_skip"><type>std::size_t</type></data-member>
|
|
<data-member name="end_skip"><type>std::size_t</type></data-member>
|
|
</struct><struct name="indices_t"><inherit access="private">std::array< index_data, buffer_size ></inherit><typedef name="base_type"><type>std::array< index_data, buffer_size ></type></typedef>
|
|
<typedef name="pointer"><type>index_data *</type></typedef>
|
|
<typedef name="const_pointer"><type>const index_data *</type></typedef>
|
|
<data-member name="hist_"><type>histogram_type *</type></data-member>
|
|
<method-group name="public member functions">
|
|
<method name="size" cv="const noexcept"><type>unsigned</type></method>
|
|
<method name="begin" cv="noexcept"><type>pointer</type></method>
|
|
<method name="begin" cv="const noexcept"><type>const_pointer</type></method>
|
|
<method name="end" cv="noexcept"><type>pointer</type></method>
|
|
<method name="end" cv="const noexcept"><type>const_pointer</type></method>
|
|
</method-group>
|
|
<constructor cv="noexcept"><parameter name="h"><paramtype>histogram_type *</paramtype></parameter></constructor>
|
|
</struct><struct name="pointer_proxy"><data-member name="ref_"><type><classname>reference</classname></type></data-member>
|
|
<method-group name="public member functions">
|
|
<method name="operator->" cv="noexcept"><type><classname>reference</classname> *</type></method>
|
|
</method-group>
|
|
</struct><typedef name="value_type"><type>typename indexed_range::value_type</type></typedef>
|
|
<typedef name="reference"><type><classname>accessor</classname></type></typedef>
|
|
<typedef name="pointer"><type>pointer_proxy</type></typedef>
|
|
<typedef name="difference_type"><type>std::ptrdiff_t</type></typedef>
|
|
<typedef name="iterator_category"><type>std::forward_iterator_tag</type></typedef>
|
|
<method-group name="public member functions">
|
|
<method name="operator *" cv="noexcept"><type><classname>reference</classname></type></method>
|
|
<method name="operator->" cv="noexcept"><type>pointer</type></method>
|
|
<method name="operator++"><type><classname>iterator</classname> &</type></method>
|
|
<method name="operator++"><type><classname>iterator</classname></type><parameter name=""><paramtype>int</paramtype></parameter></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><parameter name="x"><paramtype>const <classname>iterator</classname> &</paramtype></parameter></method>
|
|
<method name="operator!=" cv="const noexcept"><type>bool</type><parameter name="x"><paramtype>const <classname>iterator</classname> &</paramtype></parameter></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><parameter name="x"><paramtype>const value_iterator &</paramtype></parameter></method>
|
|
<method name="operator!=" cv="const noexcept"><type>bool</type><parameter name="x"><paramtype>const value_iterator &</paramtype></parameter></method>
|
|
<method name="offset" cv="const noexcept"><type>std::size_t</type></method>
|
|
</method-group>
|
|
<method-group name="private member functions">
|
|
</method-group>
|
|
<constructor><parameter name="i"><paramtype>value_iterator</paramtype></parameter><parameter name="h"><paramtype>histogram_type &</paramtype></parameter></constructor>
|
|
</class><typedef name="value_iterator"><type>std::conditional_t< std::is_const< histogram_type >::value, typename histogram_type::const_iterator, typename histogram_type::iterator ></type></typedef>
|
|
<typedef name="value_reference"><type>typename std::iterator_traits< value_iterator >::reference</type></typedef>
|
|
<typedef name="value_type"><type>typename std::iterator_traits< value_iterator >::value_type</type></typedef>
|
|
<typedef name="range_iterator"><purpose>deprecated </purpose><type><classname>iterator</classname></type></typedef>
|
|
<method-group name="public member functions">
|
|
<method name="begin" cv="noexcept"><type><classname>iterator</classname></type></method>
|
|
<method name="end" cv="noexcept"><type><classname>iterator</classname></type></method>
|
|
</method-group>
|
|
<constructor><parameter name="hist"><paramtype>histogram_type &</paramtype></parameter><parameter name="cov"><paramtype>coverage</paramtype></parameter></constructor>
|
|
</class><enum name="coverage"><enumvalue name="inner"><description><para>iterate over inner bins, exclude underflow and overflow </para></description></enumvalue><enumvalue name="all"><description><para>iterate over all bins, including underflow and overflow </para></description></enumvalue><purpose>Coverage mode of the indexed range generator. </purpose><description><para>Defines options for the iteration strategy. </para></description></enum>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<function name="indexed"><type>auto</type><template>
|
|
<template-type-parameter name="Histogram"/>
|
|
</template><parameter name="hist"><paramtype>Histogram &&</paramtype><description><para>Reference to the histogram. </para></description></parameter><parameter name="cov"><paramtype>coverage</paramtype><default>coverage::inner</default><description><para>Iterate over all or only inner bins (optional, default: inner). </para></description></parameter><purpose>Generates an indexed range of <ulink url="https://en.cppreference.com/w/cpp/named_req/ForwardIterator">forward iterators</ulink> over the histogram cells. </purpose><description><para>Use this in a range-based for loop:</para><para><programlisting language="c++">for (auto&& x : indexed(hist)) { ... }
|
|
</programlisting></para><para>This generates an optimized loop which is nearly always faster than a hand-written loop over the histogram cells. The iterators dereference to an <classname alt="boost::histogram::indexed_range::accessor">indexed_range::accessor</classname>, which has methods to query the current indices and bins and acts like a pointer to the cell value. The returned iterators are forward iterators. They can be stored in a container, but may not be used after the life-time of the histogram ends.</para><para>
|
|
|
|
</para></description><returns><para><classname alt="boost::histogram::indexed_range">indexed_range</classname></para>
|
|
</returns></function>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/literals.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<namespace name="literals">
|
|
<function name="operator""_c"><type>auto</type><template>
|
|
<template-nontype-parameter name="digits"><type>char...</type></template-nontype-parameter>
|
|
</template><purpose>Suffix operator to generate literal compile-time numbers, 0_c, 12_c, etc. </purpose></function>
|
|
</namespace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/make_histogram.hpp">
|
|
<para>Collection of factory functions to conveniently create histograms. </para><namespace name="boost">
|
|
<namespace name="histogram">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<function name="make_histogram_with"><type>auto</type><template>
|
|
<template-type-parameter name="Storage"/>
|
|
<template-type-parameter name="Axis"/>
|
|
<template-nontype-parameter name="Axes"><type>class...</type></template-nontype-parameter>
|
|
<template-type-parameter name=""><default>detail::requires_storage_or_adaptible<Storage></default></template-type-parameter>
|
|
<template-type-parameter name=""><default>detail::requires_axis<Axis></default></template-type-parameter>
|
|
</template><parameter name="storage"><paramtype>Storage &&</paramtype><description><para>Storage or container with standard interface (any vector, array, or map). </para></description></parameter><parameter name="axis"><paramtype>Axis &&</paramtype><description><para>First axis instance. </para></description></parameter><parameter name="axes"><paramtype>Axes &&...</paramtype><description><para>Other axis instances. </para></description></parameter><purpose>Make histogram from compile-time axis configuration and custom storage. </purpose><description><para>
|
|
</para></description></function>
|
|
<function name="make_histogram"><type>auto</type><template>
|
|
<template-type-parameter name="Axis"/>
|
|
<template-nontype-parameter name="Axes"><type>class...</type></template-nontype-parameter>
|
|
<template-type-parameter name=""><default>detail::requires_axis<Axis></default></template-type-parameter>
|
|
</template><parameter name="axis"><paramtype>Axis &&</paramtype><description><para>First axis instance. </para></description></parameter><parameter name="axes"><paramtype>Axes &&...</paramtype><description><para>Other axis instances. </para></description></parameter><purpose>Make histogram from compile-time axis configuration and default storage. </purpose><description><para>
|
|
</para></description></function>
|
|
<function name="make_weighted_histogram"><type>auto</type><template>
|
|
<template-type-parameter name="Axis"/>
|
|
<template-nontype-parameter name="Axes"><type>class...</type></template-nontype-parameter>
|
|
<template-type-parameter name=""><default>detail::requires_axis<Axis></default></template-type-parameter>
|
|
</template><parameter name="axis"><paramtype>Axis &&</paramtype><description><para>First axis instance. </para></description></parameter><parameter name="axes"><paramtype>Axes &&...</paramtype><description><para>Other axis instances. </para></description></parameter><purpose>Make histogram from compile-time axis configuration and weight-counting storage. </purpose><description><para>
|
|
</para></description></function>
|
|
<function name="make_histogram_with"><type>auto</type><template>
|
|
<template-type-parameter name="Storage"/>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name=""><default>detail::requires_storage_or_adaptible<Storage></default></template-type-parameter>
|
|
<template-type-parameter name=""><default>detail::requires_sequence_of_any_axis<Iterable></default></template-type-parameter>
|
|
</template><parameter name="storage"><paramtype>Storage &&</paramtype><description><para>Storage or container with standard interface (any vector, array, or map). </para></description></parameter><parameter name="iterable"><paramtype>Iterable &&</paramtype><description><para>Iterable range of axis objects. </para></description></parameter><purpose>Make histogram from iterable range and custom storage. </purpose><description><para>
|
|
</para></description></function>
|
|
<function name="make_histogram"><type>auto</type><template>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name=""><default>detail::requires_sequence_of_any_axis<Iterable></default></template-type-parameter>
|
|
</template><parameter name="iterable"><paramtype>Iterable &&</paramtype><description><para>Iterable range of axis objects. </para></description></parameter><purpose>Make histogram from iterable range and default storage. </purpose><description><para>
|
|
</para></description></function>
|
|
<function name="make_weighted_histogram"><type>auto</type><template>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name=""><default>detail::requires_sequence_of_any_axis<Iterable></default></template-type-parameter>
|
|
</template><parameter name="iterable"><paramtype>Iterable &&</paramtype><description><para>Iterable range of axis objects. </para></description></parameter><purpose>Make histogram from iterable range and weight-counting storage. </purpose><description><para>
|
|
</para></description></function>
|
|
<function name="make_histogram_with"><type>auto</type><template>
|
|
<template-type-parameter name="Storage"/>
|
|
<template-type-parameter name="Iterator"/>
|
|
<template-type-parameter name=""><default>detail::requires_storage_or_adaptible<Storage></default></template-type-parameter>
|
|
<template-type-parameter name=""><default>detail::requires_iterator<Iterator></default></template-type-parameter>
|
|
</template><parameter name="storage"><paramtype>Storage &&</paramtype><description><para>Storage or container with standard interface (any vector, array, or map). </para></description></parameter><parameter name="begin"><paramtype>Iterator</paramtype><description><para>Iterator to range of axis objects. </para></description></parameter><parameter name="end"><paramtype>Iterator</paramtype><description><para>Iterator to range of axis objects. </para></description></parameter><purpose>Make histogram from iterator interval and custom storage. </purpose><description><para>
|
|
</para></description></function>
|
|
<function name="make_histogram"><type>auto</type><template>
|
|
<template-type-parameter name="Iterator"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterator<Iterator></default></template-type-parameter>
|
|
</template><parameter name="begin"><paramtype>Iterator</paramtype><description><para>Iterator to range of axis objects. </para></description></parameter><parameter name="end"><paramtype>Iterator</paramtype><description><para>Iterator to range of axis objects. </para></description></parameter><purpose>Make histogram from iterator interval and default storage. </purpose><description><para>
|
|
</para></description></function>
|
|
<function name="make_weighted_histogram"><type>auto</type><template>
|
|
<template-type-parameter name="Iterator"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterator<Iterator></default></template-type-parameter>
|
|
</template><parameter name="begin"><paramtype>Iterator</paramtype><description><para>Iterator to range of axis objects. </para></description></parameter><parameter name="end"><paramtype>Iterator</paramtype><description><para>Iterator to range of axis objects. </para></description></parameter><purpose>Make histogram from iterator interval and weight-counting storage. </purpose><description><para>
|
|
</para></description></function>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/make_profile.hpp">
|
|
<para>Collection of factory functions to conveniently create profiles. </para><para>Profiles are histograms which accept an additional sample and compute the mean of the sample in each cell. </para><namespace name="boost">
|
|
<namespace name="histogram">
|
|
|
|
|
|
<function name="make_profile"><type>auto</type><template>
|
|
<template-type-parameter name="Axis"/>
|
|
<template-nontype-parameter name="Axes"><type>class...</type></template-nontype-parameter>
|
|
<template-type-parameter name=""><default>detail::requires_axis<Axis></default></template-type-parameter>
|
|
</template><parameter name="axis"><paramtype>Axis &&</paramtype><description><para>First axis instance. </para></description></parameter><parameter name="axes"><paramtype>Axes &&...</paramtype><description><para>Other axis instances. </para></description></parameter><purpose>Make profle from compile-time axis configuration. </purpose><description><para>
|
|
</para></description></function>
|
|
<function name="make_weighted_profile"><type>auto</type><template>
|
|
<template-type-parameter name="Axis"/>
|
|
<template-nontype-parameter name="Axes"><type>class...</type></template-nontype-parameter>
|
|
<template-type-parameter name=""><default>detail::requires_axis<Axis></default></template-type-parameter>
|
|
</template><parameter name="axis"><paramtype>Axis &&</paramtype><description><para>First axis instance. </para></description></parameter><parameter name="axes"><paramtype>Axes &&...</paramtype><description><para>Other axis instances. </para></description></parameter><purpose>Make profle from compile-time axis configuration which accepts weights. </purpose><description><para>
|
|
</para></description></function>
|
|
<function name="make_profile"><type>auto</type><template>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name=""><default>detail::requires_sequence_of_any_axis<Iterable></default></template-type-parameter>
|
|
</template><parameter name="iterable"><paramtype>Iterable &&</paramtype><description><para>Iterable range of axis objects. </para></description></parameter><purpose>Make profile from iterable range. </purpose><description><para>
|
|
</para></description></function>
|
|
<function name="make_weighted_profile"><type>auto</type><template>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name=""><default>detail::requires_sequence_of_any_axis<Iterable></default></template-type-parameter>
|
|
</template><parameter name="iterable"><paramtype>Iterable &&</paramtype><description><para>Iterable range of axis objects. </para></description></parameter><purpose>Make profile from iterable range which accepts weights. </purpose><description><para>
|
|
</para></description></function>
|
|
<function name="make_profile"><type>auto</type><template>
|
|
<template-type-parameter name="Iterator"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterator<Iterator></default></template-type-parameter>
|
|
</template><parameter name="begin"><paramtype>Iterator</paramtype><description><para>Iterator to range of axis objects. </para></description></parameter><parameter name="end"><paramtype>Iterator</paramtype><description><para>Iterator to range of axis objects. </para></description></parameter><purpose>Make profile from iterator interval. </purpose><description><para>
|
|
</para></description></function>
|
|
<function name="make_weighted_profile"><type>auto</type><template>
|
|
<template-type-parameter name="Iterator"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterator<Iterator></default></template-type-parameter>
|
|
</template><parameter name="begin"><paramtype>Iterator</paramtype><description><para>Iterator to range of axis objects. </para></description></parameter><parameter name="end"><paramtype>Iterator</paramtype><description><para>Iterator to range of axis objects. </para></description></parameter><purpose>Make profile from iterator interval which accepts weights. </purpose><description><para>
|
|
</para></description></function>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/multi_index.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<struct name="multi_index"><template>
|
|
<template-nontype-parameter name="Size"><type>std::size_t</type></template-nontype-parameter>
|
|
</template><purpose>Holder for multiple axis indices. </purpose><description><para>Adapts external iterable, tuple, or explicit list of indices to the same representation. </para></description><struct name="priv_tag"/><typedef name="value_type"><type>axis::index_type</type></typedef>
|
|
<typedef name="iterator"><type>value_type *</type></typedef>
|
|
<typedef name="const_iterator"><type>const value_type *</type></typedef>
|
|
<method-group name="public static functions">
|
|
<method name="create" specifiers="static"><type><classname>multi_index</classname></type><parameter name="s"><paramtype>std::size_t</paramtype></parameter></method>
|
|
<method name="size" cv="noexcept" specifiers="static"><type>constexpr std::size_t</type></method>
|
|
</method-group>
|
|
<method-group name="public member functions">
|
|
<method name="begin" cv="noexcept"><type>iterator</type></method>
|
|
<method name="end" cv="noexcept"><type>iterator</type></method>
|
|
<method name="begin" cv="const noexcept"><type>const_iterator</type></method>
|
|
<method name="end" cv="const noexcept"><type>const_iterator</type></method>
|
|
</method-group>
|
|
<constructor><template>
|
|
<template-nontype-parameter name="Is"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="i"><paramtype>axis::index_type</paramtype></parameter><parameter name="is"><paramtype>Is...</paramtype></parameter></constructor>
|
|
<constructor><template>
|
|
<template-nontype-parameter name="Is"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="is"><paramtype>const std::tuple< axis::index_type, Is... > &</paramtype></parameter></constructor>
|
|
<constructor><template>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterable<Iterable></default></template-type-parameter>
|
|
</template><parameter name="is"><paramtype>const Iterable &</paramtype></parameter></constructor>
|
|
<method-group name="private member functions">
|
|
</method-group>
|
|
<constructor><parameter name=""><paramtype>priv_tag</paramtype></parameter></constructor>
|
|
<constructor><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-nontype-parameter name="Is"><type>std::size_t...</type></template-nontype-parameter>
|
|
</template><parameter name="is"><paramtype>const T &</paramtype></parameter><parameter name=""><paramtype>mp11::index_sequence< Is... ></paramtype></parameter></constructor>
|
|
</struct><struct-specialization name="multi_index"><template>
|
|
</template><specialization><template-arg>static_cast< std::size_t >(-1)</template-arg></specialization><struct name="priv_tag"/><typedef name="value_type"><type>axis::index_type</type></typedef>
|
|
<typedef name="iterator"><type>value_type *</type></typedef>
|
|
<typedef name="const_iterator"><type>const value_type *</type></typedef>
|
|
<method-group name="public static functions">
|
|
<method name="create" specifiers="static"><type><classname>multi_index</classname></type><parameter name="s"><paramtype>std::size_t</paramtype></parameter></method>
|
|
</method-group>
|
|
<method-group name="public member functions">
|
|
<method name="begin" cv="noexcept"><type>iterator</type></method>
|
|
<method name="end" cv="noexcept"><type>iterator</type></method>
|
|
<method name="begin" cv="const noexcept"><type>const_iterator</type></method>
|
|
<method name="end" cv="const noexcept"><type>const_iterator</type></method>
|
|
<method name="size" cv="const noexcept"><type>std::size_t</type></method>
|
|
</method-group>
|
|
<constructor><template>
|
|
<template-nontype-parameter name="Is"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="i"><paramtype>axis::index_type</paramtype></parameter><parameter name="is"><paramtype>Is...</paramtype></parameter></constructor>
|
|
<constructor><template>
|
|
<template-nontype-parameter name="Is"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="is"><paramtype>const std::tuple< axis::index_type, Is... > &</paramtype></parameter></constructor>
|
|
<constructor><template>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterable<Iterable></default></template-type-parameter>
|
|
</template><parameter name="is"><paramtype>const Iterable &</paramtype></parameter></constructor>
|
|
<method-group name="private member functions">
|
|
</method-group>
|
|
<constructor><parameter name=""><paramtype>priv_tag</paramtype></parameter><parameter name="s"><paramtype>std::size_t</paramtype></parameter></constructor>
|
|
<constructor><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-nontype-parameter name="Ns"><type>std::size_t...</type></template-nontype-parameter>
|
|
</template><parameter name="is"><paramtype>const T &</paramtype></parameter><parameter name=""><paramtype>mp11::index_sequence< Ns... ></paramtype></parameter></constructor>
|
|
</struct-specialization>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/ostream.hpp">
|
|
<para>A simple streaming operator for the histogram type. </para><para>The text representation is rudimentary and not guaranteed to be stable between versions of Boost.Histogram. This header is not included by any other header and must be explicitly included to use the streaming operator.</para><para>To use your own, simply include your own implementation instead of this header. </para></header>
|
|
<header name="boost/histogram/accumulators/ostream.hpp">
|
|
<para>Simple streaming operators for the builtin accumulator types. </para><para>The text representation is not guaranteed to be stable between versions of Boost.Histogram. This header is only included by <ulink url="histogram/reference.html#header.boost.histogram.ostream_hpp">boost/histogram/ostream.hpp</ulink>. To use your own, include your own implementation instead of this header and do not include <ulink url="histogram/reference.html#header.boost.histogram.ostream_hpp">boost/histogram/ostream.hpp</ulink>. </para></header>
|
|
<header name="boost/histogram/axis/ostream.hpp">
|
|
<para>Simple streaming operators for the builtin axis types. </para><para>The text representation is not guaranteed to be stable between versions of Boost.Histogram. This header is only included by <ulink url="histogram/reference.html#header.boost.histogram.ostream_hpp">boost/histogram/ostream.hpp</ulink>. To use your own, include your own implementation instead of this header and do not include <ulink url="histogram/reference.html#header.boost.histogram.ostream_hpp">boost/histogram/ostream.hpp</ulink>. </para></header>
|
|
<header name="boost/histogram/sample.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<struct name="sample_type"><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><purpose>Sample holder and type envelope. </purpose><description><para>You should not construct these directly, use the sample() helper function.</para><para>
|
|
</para></description><data-member name="value"><type>T</type></data-member>
|
|
</struct>
|
|
<function name="sample"><type>auto</type><template>
|
|
<template-nontype-parameter name="Ts"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="ts"><paramtype>Ts &&...</paramtype><description><para>arguments to be forwarded to the accumulator. </para></description></parameter><purpose>Helper function to mark arguments as sample. </purpose><description><para>
|
|
</para></description></function>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/serialization.hpp">
|
|
<para>Headers from <ulink url="https://www.boost.org/doc/libs/develop/libs/serialization/doc/index.html">Boost.Serialization</ulink> needed to serialize STL types that are used internally by the Boost.Histogram classes. </para></header>
|
|
<header name="boost/histogram/storage_adaptor.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<class name="storage_adaptor"><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><purpose>Turns any vector-like, array-like, and map-like container into a storage type. </purpose><method-group name="public member functions">
|
|
<method name="operator==" cv="const"><type>bool</type><template>
|
|
<template-type-parameter name="U"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterable<U></default></template-type-parameter>
|
|
</template><parameter name="u"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name="ar"><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor cv="= default"><parameter name=""><paramtype><classname>storage_adaptor</classname> &&</paramtype></parameter></constructor>
|
|
<constructor cv="= default"><parameter name=""><paramtype>const <classname>storage_adaptor</classname> &</paramtype></parameter></constructor>
|
|
<copy-assignment cv="= default"><type><classname>storage_adaptor</classname> &</type><parameter name=""><paramtype><classname>storage_adaptor</classname> &&</paramtype></parameter></copy-assignment>
|
|
<copy-assignment cv="= default"><type><classname>storage_adaptor</classname> &</type><parameter name=""><paramtype>const <classname>storage_adaptor</classname> &</paramtype></parameter></copy-assignment>
|
|
<constructor><template>
|
|
<template-nontype-parameter name="Ts"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="ts"><paramtype>Ts &&...</paramtype></parameter></constructor>
|
|
<copy-assignment><type><classname>storage_adaptor</classname> &</type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="u"><paramtype>U &&</paramtype></parameter></copy-assignment>
|
|
</class>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/unlimited_storage.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<class name="unlimited_storage"><template>
|
|
<template-type-parameter name="Allocator"/>
|
|
</template><purpose>Memory-efficient storage for integral counters which cannot overflow. </purpose><description><para>This storage provides a no-overflow-guarantee if the counters are incremented with integer weights. It maintains a contiguous array of elemental counters, one for each cell. If an operation is requested which would overflow a counter, the array is replaced with another of a wider integral type, then the operation is executed. The storage uses integers of 8, 16, 32, 64 bits, and then switches to a multiprecision integral type, similar to those in <ulink url="https://www.boost.org/doc/libs/develop/libs/multiprecision/doc/html/index.html">Boost.Multiprecision</ulink>.</para><para>A scaling operation or adding a floating point number triggers a conversion of the elemental counters into doubles, which voids the no-overflow-guarantee. </para></description><struct name="adder"><method-group name="public member functions">
|
|
<method name="operator()"><type>void</type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="tp"><paramtype>double *</paramtype></parameter><parameter name=""><paramtype>buffer_type &</paramtype></parameter><parameter name="i"><paramtype>std::size_t</paramtype></parameter><parameter name="x"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="operator()"><type>void</type><parameter name="tp"><paramtype>large_int *</paramtype></parameter><parameter name=""><paramtype>buffer_type &</paramtype></parameter><parameter name="i"><paramtype>std::size_t</paramtype></parameter><parameter name="x"><paramtype>const large_int &</paramtype></parameter></method>
|
|
<method name="operator()"><type>void</type><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="tp"><paramtype>T *</paramtype></parameter><parameter name="b"><paramtype>buffer_type &</paramtype></parameter><parameter name="i"><paramtype>std::size_t</paramtype></parameter><parameter name="x"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="is_x_integral"><type>void</type><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name=""><paramtype>std::false_type</paramtype></parameter><parameter name="tp"><paramtype>T *</paramtype></parameter><parameter name="b"><paramtype>buffer_type &</paramtype></parameter><parameter name="i"><paramtype>std::size_t</paramtype></parameter><parameter name="x"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="is_x_integral"><type>void</type><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name=""><paramtype>std::false_type</paramtype></parameter><parameter name="tp"><paramtype>T *</paramtype></parameter><parameter name="b"><paramtype>buffer_type &</paramtype></parameter><parameter name="i"><paramtype>std::size_t</paramtype></parameter><parameter name="x"><paramtype>const large_int &</paramtype></parameter></method>
|
|
<method name="is_x_integral"><type>void</type><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name=""><paramtype>std::true_type</paramtype></parameter><parameter name="tp"><paramtype>T *</paramtype></parameter><parameter name="b"><paramtype>buffer_type &</paramtype></parameter><parameter name="i"><paramtype>std::size_t</paramtype></parameter><parameter name="x"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="is_x_unsigned"><type>void</type><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name=""><paramtype>std::false_type</paramtype></parameter><parameter name="tp"><paramtype>T *</paramtype></parameter><parameter name="b"><paramtype>buffer_type &</paramtype></parameter><parameter name="i"><paramtype>std::size_t</paramtype></parameter><parameter name="x"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="is_x_unsigned"><type>void</type><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name=""><paramtype>std::true_type</paramtype></parameter><parameter name="tp"><paramtype>T *</paramtype></parameter><parameter name="b"><paramtype>buffer_type &</paramtype></parameter><parameter name="i"><paramtype>std::size_t</paramtype></parameter><parameter name="x"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="is_x_unsigned"><type>void</type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name=""><paramtype>std::true_type</paramtype></parameter><parameter name="tp"><paramtype>large_int *</paramtype></parameter><parameter name=""><paramtype>buffer_type &</paramtype></parameter><parameter name="i"><paramtype>std::size_t</paramtype></parameter><parameter name="x"><paramtype>const U &</paramtype></parameter></method>
|
|
</method-group>
|
|
</struct><struct name="buffer_type"><typedef name="types"><type>mp11::mp_list< U8, U16, U32, U64, large_int, double ></type></typedef>
|
|
<data-member name="alloc"><type>allocator_type</type></data-member>
|
|
<data-member name="size"><type>std::size_t</type></data-member>
|
|
<data-member name="type"><type>unsigned</type></data-member>
|
|
<data-member name="ptr" specifiers="mutable"><type>void *</type></data-member>
|
|
<method-group name="public static functions">
|
|
<method name="type_index" cv="noexcept" specifiers="static"><type>constexpr unsigned</type><template>
|
|
<template-type-parameter name="T"/>
|
|
</template></method>
|
|
</method-group>
|
|
<method-group name="public member functions">
|
|
<method name="visit" cv="const"><type>decltype(auto)</type><template>
|
|
<template-type-parameter name="F"/>
|
|
<template-nontype-parameter name="Ts"><type>class...</type></template-nontype-parameter>
|
|
</template><parameter name="f"><paramtype>F &&</paramtype></parameter><parameter name="ts"><paramtype>Ts &&...</paramtype></parameter></method>
|
|
<method name="destroy" cv="noexcept"><type>void</type></method>
|
|
<method name="make"><type>void</type><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="n"><paramtype>std::size_t</paramtype></parameter></method>
|
|
<method name="make"><type>void</type><template>
|
|
<template-type-parameter name="T"/>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="n"><paramtype>std::size_t</paramtype></parameter><parameter name="iter"><paramtype>U</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor><parameter name="a"><paramtype>const allocator_type &</paramtype><default>{}</default></parameter></constructor>
|
|
<constructor cv="noexcept"><parameter name="o"><paramtype>buffer_type &&</paramtype></parameter></constructor>
|
|
<copy-assignment cv="noexcept"><type>buffer_type &</type><parameter name="o"><paramtype>buffer_type &&</paramtype></parameter></copy-assignment>
|
|
<constructor><parameter name="x"><paramtype>const buffer_type &</paramtype></parameter></constructor>
|
|
<copy-assignment><type>buffer_type &</type><parameter name="o"><paramtype>const buffer_type &</paramtype></parameter></copy-assignment>
|
|
<destructor/>
|
|
</struct><class name="const_reference"><purpose>implementation detail </purpose><method-group name="public member functions">
|
|
<method name="conversion-operator" cv="const noexcept"><type>double</type></method>
|
|
<method name="operator<" cv="const noexcept"><type>bool</type><parameter name="o"><paramtype>const <classname>const_reference</classname> &</paramtype></parameter></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><parameter name="o"><paramtype>const <classname>const_reference</classname> &</paramtype></parameter></method>
|
|
<method name="operator<" cv="const noexcept"><type><emphasis>unspecified</emphasis></type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="o"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="operator>" cv="const noexcept"><type><emphasis>unspecified</emphasis></type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="o"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="operator==" cv="const noexcept"><type><emphasis>unspecified</emphasis></type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="o"><paramtype>const U &</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor cv="noexcept"><parameter name="b"><paramtype>buffer_type &</paramtype></parameter><parameter name="i"><paramtype>std::size_t</paramtype></parameter></constructor>
|
|
<constructor><parameter name=""><paramtype>const <classname>const_reference</classname> &</paramtype></parameter></constructor>
|
|
<copy-assignment cv="= delete"><type><classname>const_reference</classname> &</type><parameter name=""><paramtype>const <classname>const_reference</classname> &</paramtype></parameter></copy-assignment>
|
|
<copy-assignment cv="= delete"><type><classname>const_reference</classname> &</type><parameter name=""><paramtype><classname>const_reference</classname> &&</paramtype></parameter></copy-assignment>
|
|
<method-group name="private member functions">
|
|
<method name="apply_binary" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="Binary"/>
|
|
</template><parameter name="x"><paramtype>const <classname>const_reference</classname> &</paramtype></parameter></method>
|
|
<method name="apply_binary" cv="const noexcept"><type>bool</type><template>
|
|
<template-type-parameter name="Binary"/>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="x"><paramtype>const U &</paramtype></parameter></method>
|
|
</method-group>
|
|
</class><struct name="incrementor"><method-group name="public member functions">
|
|
<method name="operator()"><type>void</type><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="tp"><paramtype>T *</paramtype></parameter><parameter name="b"><paramtype>buffer_type &</paramtype></parameter><parameter name="i"><paramtype>std::size_t</paramtype></parameter></method>
|
|
<method name="operator()"><type>void</type><parameter name="tp"><paramtype>large_int *</paramtype></parameter><parameter name=""><paramtype>buffer_type &</paramtype></parameter><parameter name="i"><paramtype>std::size_t</paramtype></parameter></method>
|
|
<method name="operator()"><type>void</type><parameter name="tp"><paramtype>double *</paramtype></parameter><parameter name=""><paramtype>buffer_type &</paramtype></parameter><parameter name="i"><paramtype>std::size_t</paramtype></parameter></method>
|
|
</method-group>
|
|
</struct><class name="iterator_impl"><template>
|
|
<template-type-parameter name="Value"/>
|
|
<template-type-parameter name="Reference"/>
|
|
</template><method-group name="public member functions">
|
|
<method name="operator *" cv="const noexcept"><type>Reference</type></method>
|
|
</method-group>
|
|
<constructor cv="= default"/>
|
|
<constructor><template>
|
|
<template-type-parameter name="V"/>
|
|
<template-type-parameter name="R"/>
|
|
</template><parameter name="it"><paramtype>const iterator_impl< V, R > &</paramtype></parameter></constructor>
|
|
<constructor cv="noexcept"><parameter name="b"><paramtype>buffer_type *</paramtype></parameter><parameter name="i"><paramtype>std::size_t</paramtype></parameter></constructor>
|
|
</class><struct name="multiplier"><method-group name="public member functions">
|
|
<method name="operator()"><type>void</type><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="tp"><paramtype>T *</paramtype></parameter><parameter name="b"><paramtype>buffer_type &</paramtype></parameter><parameter name="x"><paramtype>const double</paramtype></parameter></method>
|
|
<method name="operator()"><type>void</type><parameter name="tp"><paramtype>double *</paramtype></parameter><parameter name="b"><paramtype>buffer_type &</paramtype></parameter><parameter name="x"><paramtype>const double</paramtype></parameter></method>
|
|
<method name="operator()"><type>void</type><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="tp"><paramtype>T *</paramtype></parameter><parameter name="b"><paramtype>buffer_type &</paramtype></parameter><parameter name="i"><paramtype>std::size_t</paramtype></parameter><parameter name="x"><paramtype>const double</paramtype></parameter></method>
|
|
<method name="operator()"><type>void</type><parameter name="tp"><paramtype>double *</paramtype></parameter><parameter name=""><paramtype>buffer_type &</paramtype></parameter><parameter name="i"><paramtype>std::size_t</paramtype></parameter><parameter name="x"><paramtype>const double</paramtype></parameter></method>
|
|
</method-group>
|
|
</struct><class name="reference"><inherit access="public">boost::histogram::unlimited_storage< Allocator >::const_reference</inherit><purpose>implementation detail </purpose><method-group name="public member functions">
|
|
<method name="operator<" cv="const noexcept"><type>bool</type><parameter name="o"><paramtype>const <classname>reference</classname> &</paramtype></parameter></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><parameter name="o"><paramtype>const <classname>reference</classname> &</paramtype></parameter></method>
|
|
<method name="operator<" cv="const noexcept"><type><emphasis>unspecified</emphasis></type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="o"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="operator>" cv="const noexcept"><type><emphasis>unspecified</emphasis></type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="o"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="operator==" cv="const noexcept"><type><emphasis>unspecified</emphasis></type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="o"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="operator+="><type><classname>reference</classname> &</type><parameter name="x"><paramtype>const <classname>const_reference</classname> &</paramtype></parameter></method>
|
|
<method name="operator+="><type><emphasis>unspecified</emphasis></type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="x"><paramtype>const U &</paramtype></parameter></method>
|
|
<method name="operator-="><type><classname>reference</classname> &</type><parameter name="x"><paramtype>const double</paramtype></parameter></method>
|
|
<method name="operator *="><type><classname>reference</classname> &</type><parameter name="x"><paramtype>const double</paramtype></parameter></method>
|
|
<method name="operator/="><type><classname>reference</classname> &</type><parameter name="x"><paramtype>const double</paramtype></parameter></method>
|
|
<method name="operator++"><type><classname>reference</classname> &</type></method>
|
|
</method-group>
|
|
<constructor cv="noexcept"><parameter name="b"><paramtype>buffer_type &</paramtype></parameter><parameter name="i"><paramtype>std::size_t</paramtype></parameter></constructor>
|
|
<constructor><parameter name="x"><paramtype>const <classname>reference</classname> &</paramtype></parameter></constructor>
|
|
<copy-assignment><type><classname>reference</classname> &</type><parameter name="x"><paramtype>const <classname>reference</classname> &</paramtype></parameter></copy-assignment>
|
|
<copy-assignment><type><classname>reference</classname> &</type><parameter name="x"><paramtype>const <classname>const_reference</classname> &</paramtype></parameter></copy-assignment>
|
|
<copy-assignment><type><emphasis>unspecified</emphasis></type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><parameter name="x"><paramtype>const U &</paramtype></parameter></copy-assignment>
|
|
</class><typedef name="allocator_type"><type>Allocator</type></typedef>
|
|
<typedef name="value_type"><type>double</type></typedef>
|
|
<typedef name="large_int"><type><emphasis>unspecified</emphasis></type></typedef>
|
|
<typedef name="const_iterator"><type>iterator_impl< const value_type, <classname>const_reference</classname> ></type></typedef>
|
|
<typedef name="iterator"><type>iterator_impl< value_type, <classname>reference</classname> ></type></typedef>
|
|
<data-member name="has_threading_support" specifiers="static"><type>constexpr bool</type></data-member>
|
|
<method-group name="public member functions">
|
|
<method name="get_allocator" cv="const"><type>allocator_type</type></method>
|
|
<method name="reset"><type>void</type><parameter name="n"><paramtype>std::size_t</paramtype></parameter></method>
|
|
<method name="size" cv="const noexcept"><type>std::size_t</type></method>
|
|
<method name="operator[]" cv="noexcept"><type><classname>reference</classname></type><parameter name="i"><paramtype>std::size_t</paramtype></parameter></method>
|
|
<method name="operator[]" cv="const noexcept"><type><classname>const_reference</classname></type><parameter name="i"><paramtype>std::size_t</paramtype></parameter></method>
|
|
<method name="operator==" cv="const noexcept"><type>bool</type><parameter name="x"><paramtype>const <classname>unlimited_storage</classname> &</paramtype></parameter></method>
|
|
<method name="operator==" cv="const"><type>bool</type><template>
|
|
<template-type-parameter name="Iterable"/>
|
|
</template><parameter name="iterable"><paramtype>const Iterable &</paramtype></parameter></method>
|
|
<method name="operator *="><type><classname>unlimited_storage</classname> &</type><parameter name="x"><paramtype>const double</paramtype></parameter></method>
|
|
<method name="begin" cv="noexcept"><type>iterator</type></method>
|
|
<method name="end" cv="noexcept"><type>iterator</type></method>
|
|
<method name="begin" cv="const noexcept"><type>const_iterator</type></method>
|
|
<method name="end" cv="const noexcept"><type>const_iterator</type></method>
|
|
<method name="serialize"><type>void</type><template>
|
|
<template-type-parameter name="Archive"/>
|
|
</template><parameter name="ar"><paramtype>Archive &</paramtype></parameter><parameter name=""><paramtype>unsigned</paramtype></parameter></method>
|
|
</method-group>
|
|
<constructor specifiers="explicit"><parameter name="a"><paramtype>const allocator_type &</paramtype><default>{}</default></parameter></constructor>
|
|
<constructor cv="= default"><parameter name=""><paramtype>const <classname>unlimited_storage</classname> &</paramtype></parameter></constructor>
|
|
<copy-assignment cv="= default"><type><classname>unlimited_storage</classname> &</type><parameter name=""><paramtype>const <classname>unlimited_storage</classname> &</paramtype></parameter></copy-assignment>
|
|
<constructor cv="= default"><parameter name=""><paramtype><classname>unlimited_storage</classname> &&</paramtype></parameter></constructor>
|
|
<copy-assignment cv="= default"><type><classname>unlimited_storage</classname> &</type><parameter name=""><paramtype><classname>unlimited_storage</classname> &&</paramtype></parameter></copy-assignment>
|
|
<constructor specifiers="explicit"><template>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterable<Iterable></default></template-type-parameter>
|
|
</template><parameter name="s"><paramtype>const Iterable &</paramtype></parameter></constructor>
|
|
<copy-assignment><type><classname>unlimited_storage</classname> &</type><template>
|
|
<template-type-parameter name="Iterable"/>
|
|
<template-type-parameter name=""><default>detail::requires_iterable<Iterable></default></template-type-parameter>
|
|
</template><parameter name="s"><paramtype>const Iterable &</paramtype></parameter></copy-assignment>
|
|
<constructor><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="s"><paramtype>std::size_t</paramtype></parameter><parameter name="p"><paramtype>const T *</paramtype></parameter><parameter name="a"><paramtype>const allocator_type &</paramtype><default>{}</default></parameter><purpose>implementation detail; used by unit tests, not part of generic storage interface </purpose></constructor>
|
|
</class>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/unsafe_access.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<struct name="unsafe_access"><purpose>Unsafe read/write access to private data that potentially breaks consistency. </purpose><description><para>This struct enables access to private data of some classes. It is intended for library developers who need this to implement algorithms efficiently, for example, serialization. Users should not use this. If you are a user who absolutely needs this to get a specific effect, please submit an issue on Github. Perhaps the public interface is insufficient and should be extended for your use case.</para><para>Unlike the normal interface, the <classname alt="boost::histogram::unsafe_access">unsafe_access</classname> interface may change between versions. If your code relies on <classname alt="boost::histogram::unsafe_access">unsafe_access</classname>, it may or may not break when you update Boost. This is another reason to not use it unless you are ok with these conditions. </para></description><method-group name="public static functions">
|
|
<method name="axes" specifiers="static"><type>auto &</type><template>
|
|
<template-type-parameter name="Histogram"/>
|
|
</template><parameter name="hist"><paramtype>Histogram &</paramtype><description><para>histogram. </para></description></parameter><purpose>Get axes. </purpose><description><para>
|
|
</para></description></method>
|
|
<method name="axes" specifiers="static"><type>const auto &</type><template>
|
|
<template-type-parameter name="Histogram"/>
|
|
</template><parameter name="hist"><paramtype>const Histogram &</paramtype><description><para>histogram. </para></description></parameter><purpose>Get axes. </purpose><description><para>
|
|
</para></description></method>
|
|
<method name="axis" specifiers="static"><type>decltype(auto)</type><template>
|
|
<template-type-parameter name="Histogram"/>
|
|
<template-nontype-parameter name="I"><type>unsigned</type><default>0</default><purpose><para>axis index (optional, default: 0). </para></purpose></template-nontype-parameter>
|
|
</template><parameter name="hist"><paramtype>Histogram &</paramtype><description><para>histogram. </para></description></parameter><parameter name=""><paramtype>std::integral_constant< unsigned, I ></paramtype><default>{}</default></parameter><purpose>Get mutable axis reference with compile-time number. </purpose><description><para>
|
|
|
|
</para></description></method>
|
|
<method name="axis" specifiers="static"><type>decltype(auto)</type><template>
|
|
<template-type-parameter name="Histogram"/>
|
|
</template><parameter name="hist"><paramtype>Histogram &</paramtype><description><para>histogram. </para></description></parameter><parameter name="i"><paramtype>unsigned</paramtype><description><para>axis index. </para></description></parameter><purpose>Get mutable axis reference with run-time number. </purpose><description><para>
|
|
</para></description></method>
|
|
<method name="storage" specifiers="static"><type>auto &</type><template>
|
|
<template-type-parameter name="Histogram"/>
|
|
</template><parameter name="hist"><paramtype>Histogram &</paramtype><description><para>histogram. </para></description></parameter><purpose>Get storage. </purpose><description><para>
|
|
</para></description></method>
|
|
<method name="storage" specifiers="static"><type>const auto &</type><template>
|
|
<template-type-parameter name="Histogram"/>
|
|
</template><parameter name="hist"><paramtype>const Histogram &</paramtype><description><para>histogram. </para></description></parameter><purpose>Get storage. </purpose><description><para>
|
|
</para></description></method>
|
|
<method name="offset" specifiers="static"><type>auto &</type><template>
|
|
<template-type-parameter name="Histogram"/>
|
|
</template><parameter name="hist"><paramtype>Histogram &</paramtype><description><para>histogram </para></description></parameter><purpose>Get index offset. </purpose><description><para>
|
|
</para></description></method>
|
|
<method name="offset" specifiers="static"><type>const auto &</type><template>
|
|
<template-type-parameter name="Histogram"/>
|
|
</template><parameter name="hist"><paramtype>const Histogram &</paramtype><description><para>histogram </para></description></parameter><purpose>Get index offset. </purpose><description><para>
|
|
</para></description></method>
|
|
<method name="unlimited_storage_buffer" specifiers="static"><type>constexpr auto &</type><template>
|
|
<template-type-parameter name="Allocator"/>
|
|
</template><parameter name="storage"><paramtype><classname>unlimited_storage</classname>< Allocator > &</paramtype><description><para>instance of <classname alt="boost::histogram::unlimited_storage">unlimited_storage</classname>. </para></description></parameter><purpose>Get buffer of <classname alt="boost::histogram::unlimited_storage">unlimited_storage</classname>. </purpose><description><para>
|
|
</para></description></method>
|
|
<method name="storage_adaptor_impl" specifiers="static"><type>constexpr auto &</type><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="storage"><paramtype><classname>storage_adaptor</classname>< T > &</paramtype><description><para>instance of <classname alt="boost::histogram::storage_adaptor">storage_adaptor</classname>. </para></description></parameter><purpose>Get implementation of <classname alt="boost::histogram::storage_adaptor">storage_adaptor</classname>. </purpose><description><para>
|
|
</para></description></method>
|
|
</method-group>
|
|
</struct>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
<header name="boost/histogram/weight.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="histogram">
|
|
<struct name="weight_type"><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><purpose>Weight holder and type envelope. </purpose><description><para>You should not construct these directly, use the weight() helper function.</para><para>
|
|
</para></description><data-member name="value"><type>T</type><purpose>Access underlying value. </purpose></data-member>
|
|
<method-group name="public member functions">
|
|
<method name="conversion-operator" cv="const"><type>weight_type< U ></type><template>
|
|
<template-type-parameter name="U"/>
|
|
</template><purpose>Allow implicit conversions of types when the underlying value type allows them. </purpose></method>
|
|
</method-group>
|
|
</struct><function name="weight"><type>auto</type><template>
|
|
<template-type-parameter name="T"/>
|
|
</template><parameter name="t"><paramtype>T &&</paramtype><description><para>argument to be forward to the histogram. </para></description></parameter><purpose>Helper function to mark argument as weight. </purpose><description><para>
|
|
</para></description></function>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|
|
</library-reference> |