-
Notifications
You must be signed in to change notification settings - Fork 93
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
Update 1.math.md #690
Update 1.math.md #690
Conversation
| GROUP BY $-.dst \ | ||
YIELD \ | ||
$-.dst AS dst, \ | ||
(INT)(sum($-.age)/count($-.age))+avg(distinct $-.age+1)+1 AS statistics |
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.
DO NOT USE C style cast
use toInteger() instead.
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.
besides, what is this function meaning? standard deviation or z-score?
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.
OK, I have fixed it.
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.
This function has no specific meaning, which means that you can use an aggregate function like "COUNT(v)+AVG(v)"
| GROUP BY $-.dst \ | ||
YIELD \ | ||
$-.dst AS dst, \ | ||
(INT)(sum($-.age)/count($-.age))+avg(distinct $-.age+1)+1 AS statistics |
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.
besides, what is this function meaning? standard deviation or z-score?
No description provided.