HistogramBin
gammaloop Class
HistogramBin()Raw statistics and optional coordinate metadata for one histogram bin.
Member details
x_min
Property · read-onlyx_max
Property · read-onlybin_id
Property · read-onlylabel
Property · read-onlyentry_count
Property · read-onlysum_weights
Property · read-onlysum_weights_squared
Property · read-onlymitigated_fill_count
Property · read-onlyaverage
Method#
average(sample_count: int) -> floatCompute this bin's Monte Carlo mean from its raw weight sum.
Returns
float
sum_weights / sample_count, or zero when sample_count is zero.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
sample_count | int | — | Number of statistically independent samples represented by the histogram. |
error
Method#
error(sample_count: int) -> floatCompute the standard error of this bin's Monte Carlo mean.
Returns
float
Sample-mean standard error, or zero when it cannot be estimated reliably.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
sample_count | int | — | Number of statistically independent samples represented by the histogram. |
View generated signature source: docs/api/python/gammaloop-python.pyi:1192