-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add STDEV() aggregate function #1614
Conversation
Signed-off-by: Johannes Kalmbach <[email protected]>
Signed-off-by: Johannes Kalmbach <[email protected]>
…nto aggregate-stdev
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.
Two small suggestions.
Conformance check passed ✅No test result changes. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1614 +/- ##
==========================================
+ Coverage 89.21% 89.26% +0.04%
==========================================
Files 372 374 +2
Lines 34723 34892 +169
Branches 3915 3937 +22
==========================================
+ Hits 30979 31146 +167
- Misses 2471 2472 +1
- Partials 1273 1274 +1 ☔ View full report in Codecov by Sentry. |
Quality Gate passedIssues Measures |
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.
Thank you very much for these final fixes.
Add a new aggregate function `STDEV(X)` which computes the (sample) standard deviation, such that a user will not have to repetitively type `math:sqrt(sum(math:pow((X - avg(X)), 2)) / (count(*) - 1))`. This is not part of the SPARQL standard, but also doesn't cause any conflicts.
Add a new aggregate function
STDEV(X)
which computes the (sample) standard deviation, such that a user will not have to repetitively typemath:sqrt(sum(math:pow((X - avg(X)), 2)) / (count(*) - 1))
. This is not part of the SPARQL standard, but also doesn't cause any conflicts.