Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compute Histogram statistics from Sample values #26

Closed
wants to merge 3 commits into from

Conversation

albanpeignier
Copy link
Contributor

As discussed by email, here is a PR to compute Histogram Max/Min/Mean/Sum/Variance/StdDev/Percentile from Sample values.

It uses a Snapshot struct which copies values. By this way, all statistics can be computed with the same values.

This PR doesn't change current Histogram#Max/Min/.. methods.

According to us, the Histogram statistics should be delegated to a Snapshot to be consistant with current Sample values (according its implementation, like a SlidingTimeWindowSample). For example, the Percentile(1) result should be the Max() result.

The current overall Histogram statistics (which depends on Clear() usage) could be provided in dedicated methods (or sub structure).

@rcrowley
Copy link
Owner

rcrowley commented Jan 9, 2014

Superceded by #32. Thanks, @albanpeignier!

@rcrowley rcrowley closed this Jan 9, 2014
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.

None yet

2 participants