-
Notifications
You must be signed in to change notification settings - Fork 26
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
Conversation
ddsketch/ddsketch.go
Outdated
@@ -181,6 +181,19 @@ func (s *DDSketch) GetMinValue() (float64, error) { | |||
} | |||
} | |||
|
|||
// GetSum returns the sum of all values in the sketch. |
There was a problem hiding this comment.
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)?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
ddsketch/ddsketch.go
Outdated
@@ -181,6 +181,19 @@ func (s *DDSketch) GetMinValue() (float64, error) { | |||
} | |||
} | |||
|
|||
// GetSum returns the sum of all values in the sketch. |
There was a problem hiding this comment.
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.
Adds a function to get the sum of the values in the sketch.