You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by GitBox <gi...@apache.org> on 2020/12/14 02:34:42 UTC
[GitHub] [tinkerpop] junshiguo opened a new pull request #1372: TINKERPOP-2487 add stdev and percentile steps
junshiguo opened a new pull request #1372:
URL: https://github.com/apache/tinkerpop/pull/1372
https://issues.apache.org/jira/browse/TINKERPOP-2487
Added two frequently used analytical steps for calculation of standard deviation and percentile value. The example usage is
```
gremlin> g.V().values('ages')
==>1
==>2
==>3
gremlin> g.V().values('ages').stdev()
==>0.816
gremlin> g.V().values('ages').fold().stdev(Scope.local)
==>0.816
gremlin> g.V().values('ages').percentile(50)
==>2
// one percentile, return single value
gremlin> g.V().values('ages').percentile(0, 100)
==>[0: 1, 100: 3]
// multiple percentiles, return a map
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tinkerpop] spmallette commented on pull request #1372: TINKERPOP-2487 add stdev and percentile steps
Posted by GitBox <gi...@apache.org>.
spmallette commented on pull request #1372:
URL: https://github.com/apache/tinkerpop/pull/1372#issuecomment-744376391
Thank you for submitting this for review, though I'd like a bit more time with the dev list discussion before we get to the code.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tinkerpop] junshiguo closed pull request #1372: TINKERPOP-2487 add stdev and percentile steps
Posted by GitBox <gi...@apache.org>.
junshiguo closed pull request #1372:
URL: https://github.com/apache/tinkerpop/pull/1372
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tinkerpop] junshiguo commented on pull request #1372: TINKERPOP-2487 add stdev and percentile steps
Posted by GitBox <gi...@apache.org>.
junshiguo commented on pull request #1372:
URL: https://github.com/apache/tinkerpop/pull/1372#issuecomment-744397557
@spmallette Sure. Thanks.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tinkerpop] junshiguo commented on pull request #1372: TINKERPOP-2487 add stdev and percentile steps
Posted by GitBox <gi...@apache.org>.
junshiguo commented on pull request #1372:
URL: https://github.com/apache/tinkerpop/pull/1372#issuecomment-749479846
Replace with #1375.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org