.. Generated automatically by cpp2rst .. highlight:: c .. role:: red .. role:: green .. role:: param .. _triqs__stat__histogram: triqs::stat::histogram ====================== *#include * .. rst-class:: cppsynopsis class :red:`histogram` This class serves to sample a continuous random variable, and to 'bin' it. It divides a given range of real values into a series of equal intervals, and counts amounts of samples falling into each interval. The histogram keeps track of the total number of the sampled values, as well as of the lost samples that lie outside the chosen range. Member functions ---------------- .. table:: :widths: 40 60 +------------------------------------------------------------+--------------------------------------+ | :ref:`(constructor) ` | | +------------------------------------------------------------+--------------------------------------+ | :ref:`operator\<\< ` | Bin a real value into the histogram | +------------------------------------------------------------+--------------------------------------+ | :ref:`mesh_point ` | Get position of bin's center | +------------------------------------------------------------+--------------------------------------+ | :ref:`size ` | Get number of histogram bins | +------------------------------------------------------------+--------------------------------------+ | :ref:`limits ` | Get boundaries of the histogram | +------------------------------------------------------------+--------------------------------------+ | :ref:`data ` | Read-only access to the data storage | +------------------------------------------------------------+--------------------------------------+ | :ref:`n_data_pts ` | Get number of accumulated samples | +------------------------------------------------------------+--------------------------------------+ | :ref:`n_lost_pts ` | Get number of discarded samples | +------------------------------------------------------------+--------------------------------------+ | :ref:`clear ` | Reset all histogram values to 0 | +------------------------------------------------------------+--------------------------------------+ | :ref:`hdf5_format ` | Get HDF5 format name | +------------------------------------------------------------+--------------------------------------+ | :ref:`operator== ` | | +------------------------------------------------------------+--------------------------------------+ | :ref:`serialize ` | Serialize Histogram | +------------------------------------------------------------+--------------------------------------+ .. toctree:: :hidden: histogram/constructor histogram/operator<< histogram/mesh_point histogram/size histogram/limits histogram/data histogram/n_data_pts histogram/n_lost_pts histogram/clear histogram/hdf5_format histogram/operator== histogram/serialize Non Member functions -------------------- .. table:: :widths: 40 60 +--------------------------------------------------------------+--------------------------+ | :ref:`operator+ ` | Addition of histograms | +--------------------------------------------------------------+--------------------------+ | :ref:`mpi_broadcast ` | MPI-broadcast histogram | +--------------------------------------------------------------+--------------------------+ | :ref:`mpi_reduce ` | MPI-reduce histogram | +--------------------------------------------------------------+--------------------------+ | :ref:`h5_write ` | Write histogram to HDF5 | +--------------------------------------------------------------+--------------------------+ | :ref:`h5_read ` | Read histogram form HDF5 | +--------------------------------------------------------------+--------------------------+ | :ref:`operator\<\< ` | Output stream insertion | +--------------------------------------------------------------+--------------------------+ .. toctree:: :hidden: histogram/operator+ histogram/mpi_broadcast histogram/mpi_reduce histogram/h5_write histogram/h5_read histogram/operator<<