123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- #ifndef BOOST_HISTOGRAM_MAKE_PROFILE_HPP
- #define BOOST_HISTOGRAM_MAKE_PROFILE_HPP
- #include <boost/histogram/accumulators/mean.hpp>
- #include <boost/histogram/accumulators/weighted_mean.hpp>
- #include <boost/histogram/fwd.hpp>
- #include <boost/histogram/make_histogram.hpp>
- namespace boost {
- namespace histogram {
- template <class Axis, class... Axes, class = detail::requires_axis<Axis>>
- auto make_profile(Axis&& axis, Axes&&... axes) {
- return make_histogram_with(profile_storage(), std::forward<Axis>(axis),
- std::forward<Axes>(axes)...);
- }
- template <class Axis, class... Axes, class = detail::requires_axis<Axis>>
- auto make_weighted_profile(Axis&& axis, Axes&&... axes) {
- return make_histogram_with(weighted_profile_storage(), std::forward<Axis>(axis),
- std::forward<Axes>(axes)...);
- }
- template <class Iterable, class = detail::requires_sequence_of_any_axis<Iterable>>
- auto make_profile(Iterable&& iterable) {
- return make_histogram_with(profile_storage(), std::forward<Iterable>(iterable));
- }
- template <class Iterable, class = detail::requires_sequence_of_any_axis<Iterable>>
- auto make_weighted_profile(Iterable&& iterable) {
- return make_histogram_with(weighted_profile_storage(),
- std::forward<Iterable>(iterable));
- }
- template <class Iterator, class = detail::requires_iterator<Iterator>>
- auto make_profile(Iterator begin, Iterator end) {
- return make_histogram_with(profile_storage(), begin, end);
- }
- template <class Iterator, class = detail::requires_iterator<Iterator>>
- auto make_weighted_profile(Iterator begin, Iterator end) {
- return make_histogram_with(weighted_profile_storage(), begin, end);
- }
- }
- }
- #endif
|