.. Generated automatically by cpp2rst .. highlight:: c .. role:: red .. role:: green .. role:: param .. _triqs__stat__accumulator__linear_bins: triqs::stat::accumulator::linear_bins ===================================== *#include * **Synopsis** .. rst-class:: cppsynopsis | std::vector const & :red:`linear_bins` () const Returns vector with data stored from linear binning Returns ^^^^^^^ Vector with the data of type T, which defines the accumulator Example ^^^^^^^ .. Included automatically from /src/triqs/doc/documentation/examples/triqs/stat/acc_linear_bins.cpp .. code-block:: cpp #include #include using namespace triqs::stat; int main() { accumulator my_acc(0.0, 0, 100, 1); my_acc << 0.0 << 1.0 << 2.0 << 3.0 << 4.0; std::vector output = my_acc.linear_bins(); // Print data of linear bins for (auto &x : output) { std::cout << x << std::endl; } } *Output* .. code-block:: text 0 1 2 3 4