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

[ddsketch] Add getsum function #35

Merged
merged 3 commits into from
Jun 24, 2021
Merged

Conversation

piochelepiotr
Copy link
Contributor

@piochelepiotr piochelepiotr commented Jun 11, 2021

Adds a function to get the sum of the values in the sketch.

@@ -181,6 +181,19 @@ func (s *DDSketch) GetMinValue() (float64, error) {
}
}

// GetSum returns the sum of all values in the sketch.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add comments as to how accurate that is (similar to what we have in the Java implementation)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a comment. I haven't found the comment in Java though, so let me know if that works.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's there, but I think that works too.

@@ -181,6 +181,19 @@ func (s *DDSketch) GetMinValue() (float64, error) {
}
}

// GetSum returns the sum of all values in the sketch.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's there, but I think that works too.

@piochelepiotr piochelepiotr merged commit fd60a8a into master Jun 24, 2021
@piochelepiotr piochelepiotr deleted the piotr-wolski/return-sum branch June 24, 2021 15:59
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