G
YouTube TikTok Games
Skip to content

Preserve precision in change-point statistics and distances - #196

Open
Gerrrr wants to merge 1 commit into
masterfrom
fix/float64-statistics
Open

Gerrrr wants to merge 1 commit into
masterfrom
fix/float64-statistics

Conversation

@Gerrrr

@Gerrrr Gerrrr commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Float16/float32 inputs can lose a detected change point because reductions round different group means to the same value. Large float16 distances can also overflow. Promote statistical inputs to at least float64 before calculating means and sample standard deviations, and promote lower-precision floating calculator inputs before computing distances.

Preserve exact integer calculator inputs and wider floating types. Add ten regression cases covering accurate statistics, consistent t-test decisions and detected boundaries, float16 distance overflow, and large integer differences.

Promote float16 and float32 observations before reducing statistics and computing pair distances. Preserve wider floating types and exact integer calculator inputs.

Add regressions for large-offset means and t-test decisions, float16 distance overflow, native detector and split/merge boundaries, and exact large-integer distances.
@Gerrrr
Gerrrr marked this pull request as ready for review November 10, 2026 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant