triqs::stat::histogram::operator+

#include <triqs/stat.hpp>

Synopsis

histogram operator+ (histogram h1,
histogram const & h2)

Compute the sum of two histograms over the same range, and with equal numbers of bins. This operator will throw if histograms to be added up are incompatible. Summation is also performed on the numbers of accumulated and discarded points.

Parameters

  • h1 First histogram to add up

  • h2 Second histogram to add up

Returns

Sum of histograms