Skip to content

Tessero\Stats\RvHistogram

← All classes

AI assistant

Build this with Claude Code, Cursor or Copilot

Copy a Tessero-tuned prompt for Tessero\Stats\RvHistogram, grounded in 9 real API signatures , into your IDE's AI. No chatbot, just exact context.

__construct
__construct(array $counts, array $binEdges, ?bool $density = null)
fromHistogram static
fromHistogram(array $counts, array $binEdges, ?bool $density = null): self
pdf
pdf(mixed $x): mixed

pdf(x) = _hpdf[searchsorted(bins, x, side='right')] -- scalar or array in, same out.

cdf
cdf(mixed $x): mixed

cdf(x) = interp(x, bins, _hcdf).

sf
sf(mixed $x): mixed

sf(x) = 1 - cdf(x).

ppf
ppf(mixed $q): mixed

ppf(q) = interp(q, _hcdf, bins).

mean
mean(): float

E[X] = sum_i p_i * (b_{i+1}^2 - b_i^2) / 2.

var
var(): float

Var[X] = E[X^2] - E[X]^2, E[X^2] = sum_i p_i * (b_{i+1}^3 - b_i^3) / 3.

std
std(): float
median
median(): float