Description
Profile positive-width histogram intervals and arithmetic centers from explicit strictly ordered finite edges; no sample density, unit or distribution inference.
A histogram uses ordered edges to partition numeric values into bins. This family assigns an interior boundary to the bin on its right and includes the final right edge in the last bin. Raw counts, sums of weights and probability density are different quantities; edges and observations must use consistent units.
Profile positive-width histogram intervals and arithmetic centers from explicit strictly ordered finite edges; no sample density, unit or distribution inference.
When to use this tool
Use this tool to profile positive-width histogram intervals and arithmetic centers from explicit strictly ordered finite edges; no sample density, unit or distribution inference.
How to use the tool and how it works
- Enter edges using the field definitions below.
- Run the operation. Correct input errors before interpreting an output.
- Read result.bins. Use the ordering, boundary rules and absence conditions described below.
For each adjacent edge pair, return left, right, width and midpoint, using left/2 + right/2 for the center.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| edges | Finite strictly increasing bin edges; at least two for bin operations. | Dense list of at most 128 finite numbers; integer/shape constraints above also apply. |
| Output field | Interpretation |
|---|---|
| result | Object containing the named fields below. |
| result.bins | Adjacent edge records with left, right, width and center. |
{
"input": {
"edges": [
0,
2,
5
]
},
"output": {
"result": {
"bins": [
{
"left": 0,
"right": 2,
"width": 2,
"center": 1
},
{
"left": 2,
"right": 5,
"width": 3,
"center": 3.5
}
]
}
}
} Limitations and assumptions
- Widths and centers use the edges’ units; a valid edge list can still yield an unsafe numeric output that is rejected.
- Bin operations require at least two finite strictly increasing edges. Every bin is left-inclusive; right ends are exclusive except for the final right edge. The monotonicity audit reports violations instead of requiring valid ordering in advance.
- Every declared top-level input field is required and unexpected fields are rejected. Ordinary strings are limited to 8,192 UTF-16 code units and lists to 128 entries, with tighter operation-specific bounds where stated. JSON text has bounded nesting and node counts.
- Numeric outputs must be finite and no larger in absolute magnitude than the safe-integer limit; operations returning exact large integers use decimal text. Positions are zero-based and spans end exclusively unless the operation explicitly states a different convention.
Alternative or Complementary methods
Choose bin edges deliberately, then distinguish membership, count, weight and density calculations. Preserve underflow and overflow information instead of silently discarding observations outside the supplied range.
References
Similar or alternative tools
- Histogram Edge Monotonicity Audit
Audit strict histogram edge monotonicity and minimum arity without silently sorting or removing equal/backwards edges; preserve signed adjacent differences.
- Histogram Explicit Edge Count Table
Count explicit observations in supplied ordered histogram bins with final edge included, reporting outside count without clamping under/overflow into endpoint bins.