-
Notifications
You must be signed in to change notification settings - Fork 50
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
#1553
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1553 +/- ##
==========================================
- Coverage 88.96% 88.96% -0.01%
==========================================
Files 366 367 +1
Lines 33256 33328 +72
Branches 3729 3735 +6
==========================================
+ Hits 29587 29650 +63
- Misses 2439 2442 +3
- Partials 1230 1236 +6 ☔ View full report in Codecov by Sentry. |
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.
An initial round of reviews.
This PR adds 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.