[
https://issues.apache.org/jira/browse/TINKERPOP3-909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14987325#comment-14987325
]
ASF GitHub Bot commented on TINKERPOP3-909:
-------------------------------------------
Github user okram commented on the pull request:
https://github.com/apache/incubator-tinkerpop/pull/131#issuecomment-153368040
Seems you always return a Double for `mean().`
```
gremlin> g.V().values('age').mean()
==>30.75
gremlin> __(2,2,4,4).mean()
==>3.0
```
Why is the MeanGlobalStep signature then <Number> ?
> Improve steps that handle numeric data
> --------------------------------------
>
> Key: TINKERPOP3-909
> URL: https://issues.apache.org/jira/browse/TINKERPOP3-909
> Project: TinkerPop 3
> Issue Type: Improvement
> Components: process
> Affects Versions: 3.1.0-incubating
> Reporter: Daniel Kuppitz
> Assignee: Daniel Kuppitz
> Fix For: 3.1.0-incubating
>
>
> Use the new {{NumberHelper}} (implemented in
> https://issues.apache.org/jira/browse/TINKERPOP3-861) in steps that are
> supposed to handle numeric data (e.g. {{Sum(Global)Step}},
> {{Min(Global)Step)}}, {{Max(Global)Step}}, etc.). These steps currently
> simply convert everything into a {{Double}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)