|
numerics 0.1.0
|
#include <stats.hpp>
Public Member Functions | |
| Histogram (idx nbins, real lo, real hi) | |
| idx | bin (real x) const |
| real | bin_centre (idx b) const |
| real | bin_width () const |
| void | fill (real x, real weight=1.0) |
| void | reset () |
| real | total () const |
| std::vector< real > | pdf () const |
| Normalise so that the histogram integrates to 1 (probability density). | |
Public Attributes | |
| std::vector< real > | counts |
| real | lo = 0.0 |
| real | hi = 0.0 |
| idx | nbins = 0 |
Fixed-bin histogram over [lo, hi). Useful for umbrella sampling – each window collects a Histogram of the reaction coordinate (e.g. nucleus size), then WHAM stitches them together.
|
inline |
|
inline |
Normalise so that the histogram integrates to 1 (probability density).
Definition at line 108 of file stats.hpp.
References bin_width(), counts, nbins, num::norm(), and total().
|
inline |
| std::vector<real> num::Histogram::counts |
| real num::Histogram::hi = 0.0 |
Definition at line 60 of file stats.hpp.
Referenced by bin(), bin_centre(), and bin_width().
| real num::Histogram::lo = 0.0 |
Definition at line 59 of file stats.hpp.
Referenced by bin(), bin_centre(), and bin_width().
| idx num::Histogram::nbins = 0 |
Definition at line 61 of file stats.hpp.
Referenced by bin(), bin_centre(), bin_width(), fill(), and pdf().