triqs.stat.histograms.Histogram

class triqs.stat.histograms.Histogram

Statistical 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.

Methods

__init__(*args, **kwargs)
clear Signature : () -> None Reset all histogram values to 0
mesh_point Signature : (int n) -> float Get position of bin's center

Attributes

data Read-only access to the data storage
limits Return boundaries of the histogram
n_data_pts Get number of accumulated samples
n_lost_pts Get number of discarded samples