Abstract We present BHM , a tool for restoring a smooth function from a sampled histogram using the bin hierarchy method. It is particularly useful for the analysis of data from large-scale numerical simulations of physical systems, such as diagrammatic Monte Carlo simulations of quantum many-body problems. The theoretical background of the method is presented in Goulko et al., (2018). The code automatically generates a smooth polynomial spline with the minimal acceptable number of knots from the input data. It works universally for any sufficiently regular shaped distribution and any level of data quality (provided that the data are uncorrelated or correlations have been accounted for), requiring almost no external parameter specification. This paper explains the details of the implementation and the use of the program, including a physical example of the restoration of the Frohlich polaron Green’s function from data sampled with diagrammatic Monte Carlo. Program summary Program Title: BHM Program Files doi: http://dx.doi.org/10.17632/dvj8gxsxpk.1 Licensing provisions: GPLv3 Programming language: C++ External routines/libraries: CMake, GSL Nature of problem: Restoring a smooth function from a sampled histogram. Solution method: To make use of all information contained in the sampled data, the BHM algorithm generates a hierarchy of overlapping bins of different sizes from the initially supplied fine histogram. The bin hierarchy is fitted to a polynomial spline with the minimal acceptable number of knots, the positions of which are determined automatically. The output is a smooth function with error band.
[1]
H. Fröhlich,et al.
XX. Properties of slow electrons in polar materials
,
1950
.
[2]
B. Silverman.
Density estimation for statistics and data analysis
,
1986
.
[3]
Jeremy Schofield,et al.
Constructing smooth potentials of mean force, radial distribution functions, and probability densities from sampled data.
,
2009,
The Journal of chemical physics.
[4]
Bernd A. Berg,et al.
From data to probability densities without histograms
,
2007,
Comput. Phys. Commun..
[5]
Lawrence K. Saul,et al.
Think Globally, Fit Locally: Unsupervised Learning of Low Dimensional Manifold
,
2003,
J. Mach. Learn. Res..
[6]
Olga Goulko,et al.
Restoring a smooth function from its noisy integrals.
,
2018,
Physical review. E.
[7]
J. Simonoff.
Multivariate Density Estimation
,
1996
.
[8]
Akihiko Sakamoto,et al.
Diagrammatic quantum Monte Carlo study of the Fröhlich polaron
,
2000
.
[9]
Ilya Narsky,et al.
Statistical Analysis Techniques in Particle Physics
,
2013
.
[10]
C. D. Kemp,et al.
Density Estimation for Statistics and Data Analysis
,
1987
.