Skip to content

Conversation

@ksn6
Copy link
Contributor

@ksn6 ksn6 commented Jan 26, 2026

Problem and Summary of Changes

We aim to capture running first and second order statistics of a number of values in consensus metrics. consensus_metrics.rs uses Histogram, which:

  • Unnecessarily approximates mean and standard deviation calculations
  • Introduces an extra dependency

We replace Histogram with welford_stats.rs, which calculates online means and standard deviations within machine precision (i.e., no approximation), paying attention to numerical stability.

NOTE: we'll land this PR after #698 gets in.

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