triqs::stat::histogram

#include <triqs/stat.hpp>

class 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

(constructor)

operator<<

Bin a real value into the histogram

mesh_point

Get position of bin’s center

size

Get number of histogram bins

limits

Get boundaries of the histogram

data

Read-only access to the data storage

n_data_pts

Get number of accumulated samples

n_lost_pts

Get number of discarded samples

clear

Reset all histogram values to 0

hdf5_format

Get HDF5 format name

operator==

serialize

Serialize Histogram

Non Member functions

operator+

Addition of histograms

mpi_broadcast

MPI-broadcast histogram

mpi_reduce

MPI-reduce histogram

h5_write

Write histogram to HDF5

h5_read

Read histogram form HDF5

operator<<

Output stream insertion