55 if (x < lo || x >=
hi)
82 std::vector<real>
pdf()
const {
84 std::vector<real> p(
nbins);
real norm(const Vector &x, Backend b=default_backend)
Compute .
real autocorr_time(const real *data, idx n, real c=6.0)
Fixed-bin histogram over .
real bin_centre(idx b) const
Histogram(idx nbins, real lo, real hi)
std::vector< real > pdf() const
Normalise so that the histogram integrates to 1 (probability density).
void fill(real x, real weight=1.0)
std::vector< real > counts
Welford updates for mean and variance.