[ 
https://issues.apache.org/jira/browse/TINKERPOP-2487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17851813#comment-17851813
 ] 

ASF GitHub Bot commented on TINKERPOP-2487:
-------------------------------------------

kenhuuu commented on PR #1375:
URL: https://github.com/apache/tinkerpop/pull/1375#issuecomment-2146120489

   As noted above, this PR looks promising but has stalled and has fallen out 
of sync with the release branches (originally intended to go to 3.5.x which is 
no longer maintained). My suggestion is to close this PR for now, but mention 
to use it as a starting base for TINKERPOP-2487 if someone else is willing to 
pick up the work. Seems like there are some corner cases that also need to be 
thought out so it may need a clearer proposal as well.
   
   If there aren't any disagreements within 72 hours of closing this PR then 
I'll do so then. But, as always, feel free to re-open this PR if someone is 
willing to finish the work on it.




> Add steps to support basic analysis like standard deviation and percentile
> --------------------------------------------------------------------------
>
>                 Key: TINKERPOP-2487
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2487
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.4.8
>            Reporter: Guo Junshi
>            Priority: Minor
>
> When using tinkerpop Gremlin for real use cases, we found that some general 
> analytical steps are very useful, yet not supported now. Some analytical 
> steps are general enough to be part of the official gremlin package, e.g. 
> steps to calculate standard deviation and percentile. The example usage might 
> be:
>  
> {code:java}
> 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{code}
> These steps are frequently used in our cases, and we think it would be great 
> to support them in official versions. 
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to