Skip to content

Conversation

@PsiACE
Copy link
Member

@PsiACE PsiACE commented Jan 14, 2026

Added halve and decay to CountMinSketch, matching cmsketch behavior for non‑negative counters.

This scales counters (and total_weight) to support exponential decay while keeping serialization unchanged. I’m not fully confident about the math details, especially around our error bounds, but the implementation itself should be straightforward. 😃

Related #70

@jmalkin
Copy link

jmalkin commented Jan 14, 2026

If the impact on error bounds is not known we need to have a large warning about this and to set a flag that refuses to return error bounds after these operations.

Lying by giving an answer when we do not have math to support it is very bad.

@PsiACE PsiACE marked this pull request as draft January 14, 2026 16:21
@c-dickens
Copy link

Think this goes through by the linear property of count min but am on phone so haven't looked at the code yet.

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.

3 participants