Skip to content

regression fix: bin quantization next to thresholds - #296

Open
Fil wants to merge 1 commit into
mainfrom
fil/fix-bin-quantization
Open

Fil wants to merge 1 commit into
mainfrom
fil/fix-bin-quantization

Conversation

@Fil

@Fil Fil commented Nov 9, 2026

Copy link
Copy Markdown
Member

Since 3.1.3 (#220), the bin index computed by quantization can be off by one in either direction for a value next to a threshold: with bin().domain([0, 1]).thresholds(10), 0.8999999999999999 went into
[0.9, 1).

Closes #295
Supersedes #291

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

regression: in d3.bin, values next to a threshold go into the wrong bin

1 participant